Commit 0ea60334 authored by Eric Sandeen's avatar Eric Sandeen Committed by Stephen Lord

[XFS] add swsusp support to xfs daemons

SGI Modid: 2.5.x-xfs:slinx:152354a
parent a1bafab5
...@@ -71,6 +71,7 @@ ...@@ -71,6 +71,7 @@
#include <linux/namei.h> #include <linux/namei.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/mount.h> #include <linux/mount.h>
#include <linux/suspend.h>
STATIC struct quotactl_ops linvfs_qops; STATIC struct quotactl_ops linvfs_qops;
STATIC struct super_operations linvfs_sops; STATIC struct super_operations linvfs_sops;
...@@ -401,6 +402,9 @@ syncd(void *arg) ...@@ -401,6 +402,9 @@ syncd(void *arg)
for (;;) { for (;;) {
set_current_state(TASK_INTERRUPTIBLE); set_current_state(TASK_INTERRUPTIBLE);
schedule_timeout(xfs_params.sync_interval); schedule_timeout(xfs_params.sync_interval);
/* swsusp */
if (current->flags & PF_FREEZE)
refrigerator(PF_IOTHREAD);
if (vfsp->vfs_flag & VFS_UMOUNT) if (vfsp->vfs_flag & VFS_UMOUNT)
break; break;
if (vfsp->vfs_flag & VFS_RDONLY) if (vfsp->vfs_flag & VFS_RDONLY)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment