]> git.hungrycats.org Git - linux/commitdiff
[XFS] add swsusp support to xfs daemons
authorEric Sandeen <sandeen@sgi.com>
Wed, 9 Jul 2003 06:17:38 +0000 (01:17 -0500)
committerStephen Lord <lord@sgi.com>
Wed, 9 Jul 2003 06:17:38 +0000 (01:17 -0500)
SGI Modid: 2.5.x-xfs:slinx:152354a

fs/xfs/linux/xfs_super.c

index d482cb69fadeb88df8b9baed65ab3a81a65df2cf..6131d4585d125411b394a5775691f9d9388613e8 100644 (file)
@@ -71,6 +71,7 @@
 #include <linux/namei.h>
 #include <linux/init.h>
 #include <linux/mount.h>
+#include <linux/suspend.h>
 
 STATIC struct quotactl_ops linvfs_qops;
 STATIC struct super_operations linvfs_sops;
@@ -401,6 +402,9 @@ syncd(void *arg)
        for (;;) {
                set_current_state(TASK_INTERRUPTIBLE);
                schedule_timeout(xfs_params.sync_interval);
+               /* swsusp */
+               if (current->flags & PF_FREEZE)
+                       refrigerator(PF_IOTHREAD);
                if (vfsp->vfs_flag & VFS_UMOUNT)
                        break;
                if (vfsp->vfs_flag & VFS_RDONLY)