Commit 508fdba5 authored by Stephen Lord's avatar Stephen Lord

[XFS] use the 2.5 version of the arguments on sync_fs

SGI Modid: 2.5.x-xfs:slinx:155267a
parent 3f25b9a3
...@@ -508,12 +508,17 @@ linvfs_write_super( ...@@ -508,12 +508,17 @@ linvfs_write_super(
STATIC int STATIC int
linvfs_sync_super( linvfs_sync_super(
struct super_block *sb) struct super_block *sb,
int wait)
{ {
vfs_t *vfsp = LINVFS_GET_VFS(sb); vfs_t *vfsp = LINVFS_GET_VFS(sb);
int error; int error;
int flags = SYNC_FSDATA;
if (wait)
flags |= SYNC_WAIT;
VFS_SYNC(vfsp, SYNC_FSDATA|SYNC_WAIT, NULL, error); VFS_SYNC(vfsp, flags, NULL, error);
sb->s_dirt = 0; sb->s_dirt = 0;
return -error; return -error;
......
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