diff options
author | Nathan Scott <nathans@sgi.com> | 2005-11-01 18:32:38 -0500 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2005-11-01 18:32:38 -0500 |
commit | ee34807a65aa0c5911dc27682863afca780a003e (patch) | |
tree | 6111a529078e9e12ce5102f7c736f649fb3ec498 /fs/xfs/linux-2.6/xfs_fs_subr.c | |
parent | c310ab6c071a688e5291028972d1ae8314f67536 (diff) |
[XFS] Provide a mechiansm for flushing delalloc before quota reporting.
SGI-PV: 942815
SGI-Modid: xfs-linux:xfs-kern:23829a
Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_fs_subr.c')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_fs_subr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/linux-2.6/xfs_fs_subr.c b/fs/xfs/linux-2.6/xfs_fs_subr.c index 05ebd30ec96f..88134cba5cb0 100644 --- a/fs/xfs/linux-2.6/xfs_fs_subr.c +++ b/fs/xfs/linux-2.6/xfs_fs_subr.c | |||
@@ -117,6 +117,8 @@ fs_flush_pages( | |||
117 | 117 | ||
118 | if (VN_CACHED(vp)) { | 118 | if (VN_CACHED(vp)) { |
119 | filemap_fdatawrite(ip->i_mapping); | 119 | filemap_fdatawrite(ip->i_mapping); |
120 | if (flags & XFS_B_ASYNC) | ||
121 | return 0; | ||
120 | filemap_fdatawait(ip->i_mapping); | 122 | filemap_fdatawait(ip->i_mapping); |
121 | } | 123 | } |
122 | 124 | ||