diff options
author | Christoph Hellwig <hch@infradead.org> | 2007-08-28 20:58:01 -0400 |
---|---|---|
committer | Tim Shimmin <tes@chook.melbourne.sgi.com> | 2007-10-15 20:40:00 -0400 |
commit | 739bfb2a7dfa369324f74aad1d020d6e0775e4f0 (patch) | |
tree | 8fbe3e739e0d550137e3f148a36ce5c083f5ef2c /fs/xfs/xfs_vfsops.c | |
parent | 993386c19afa53fa54d00c7721e56ba820b3400d (diff) |
[XFS] call common xfs vnode-level helpers directly and remove vnode operations
SGI-PV: 969608
SGI-Modid: xfs-linux-melb:xfs-kern:29493a
Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
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 | ||