diff options
Diffstat (limited to 'fs/xfs/xfs_vfsops.c')
-rw-r--r-- | fs/xfs/xfs_vfsops.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/fs/xfs/xfs_vfsops.c b/fs/xfs/xfs_vfsops.c index b4db8a208076..a9cebcb0b33b 100644 --- a/fs/xfs/xfs_vfsops.c +++ b/fs/xfs/xfs_vfsops.c | |||
@@ -54,6 +54,8 @@ | |||
54 | #include "xfs_mru_cache.h" | 54 | #include "xfs_mru_cache.h" |
55 | #include "xfs_filestream.h" | 55 | #include "xfs_filestream.h" |
56 | #include "xfs_fsops.h" | 56 | #include "xfs_fsops.h" |
57 | #include "xfs_vnodeops.h" | ||
58 | |||
57 | 59 | ||
58 | STATIC int xfs_sync(bhv_desc_t *, int, cred_t *); | 60 | STATIC int xfs_sync(bhv_desc_t *, int, cred_t *); |
59 | 61 | ||
@@ -1191,12 +1193,13 @@ xfs_sync_inodes( | |||
1191 | if (flags & SYNC_CLOSE) { | 1193 | if (flags & SYNC_CLOSE) { |
1192 | /* Shutdown case. Flush and invalidate. */ | 1194 | /* Shutdown case. Flush and invalidate. */ |
1193 | if (XFS_FORCED_SHUTDOWN(mp)) | 1195 | if (XFS_FORCED_SHUTDOWN(mp)) |
1194 | bhv_vop_toss_pages(vp, 0, -1, FI_REMAPF); | 1196 | xfs_tosspages(ip, 0, -1, |
1197 | FI_REMAPF); | ||
1195 | else | 1198 | else |
1196 | error = bhv_vop_flushinval_pages(vp, 0, | 1199 | error = xfs_flushinval_pages(ip, |
1197 | -1, FI_REMAPF); | 1200 | 0, -1, FI_REMAPF); |
1198 | } else if ((flags & SYNC_DELWRI) && VN_DIRTY(vp)) { | 1201 | } else if ((flags & SYNC_DELWRI) && VN_DIRTY(vp)) { |
1199 | error = bhv_vop_flush_pages(vp, (xfs_off_t)0, | 1202 | error = xfs_flush_pages(ip, 0, |
1200 | -1, fflag, FI_NONE); | 1203 | -1, fflag, FI_NONE); |
1201 | } | 1204 | } |
1202 | 1205 | ||