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_inode.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_inode.c')
-rw-r--r-- | fs/xfs/xfs_inode.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index c1b917bd5951..c2fc4838a5fa 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c | |||
@@ -49,6 +49,7 @@ | |||
49 | #include "xfs_quota.h" | 49 | #include "xfs_quota.h" |
50 | #include "xfs_acl.h" | 50 | #include "xfs_acl.h" |
51 | #include "xfs_filestream.h" | 51 | #include "xfs_filestream.h" |
52 | #include "xfs_vnodeops.h" | ||
52 | 53 | ||
53 | kmem_zone_t *xfs_ifork_zone; | 54 | kmem_zone_t *xfs_ifork_zone; |
54 | kmem_zone_t *xfs_inode_zone; | 55 | kmem_zone_t *xfs_inode_zone; |
@@ -1267,7 +1268,7 @@ xfs_ialloc( | |||
1267 | xfs_trans_log_inode(tp, ip, flags); | 1268 | xfs_trans_log_inode(tp, ip, flags); |
1268 | 1269 | ||
1269 | /* now that we have an i_mode we can setup inode ops and unlock */ | 1270 | /* now that we have an i_mode we can setup inode ops and unlock */ |
1270 | bhv_vfs_init_vnode(XFS_MTOVFS(tp->t_mountp), vp, XFS_ITOBHV(ip), 1); | 1271 | bhv_vfs_init_vnode(XFS_MTOVFS(tp->t_mountp), vp, ip, 1); |
1271 | 1272 | ||
1272 | *ipp = ip; | 1273 | *ipp = ip; |
1273 | return 0; | 1274 | return 0; |
@@ -1489,9 +1490,11 @@ xfs_itruncate_start( | |||
1489 | last_byte); | 1490 | last_byte); |
1490 | if (last_byte > toss_start) { | 1491 | if (last_byte > toss_start) { |
1491 | if (flags & XFS_ITRUNC_DEFINITE) { | 1492 | if (flags & XFS_ITRUNC_DEFINITE) { |
1492 | bhv_vop_toss_pages(vp, toss_start, -1, FI_REMAPF_LOCKED); | 1493 | xfs_tosspages(ip, toss_start, |
1494 | -1, FI_REMAPF_LOCKED); | ||
1493 | } else { | 1495 | } else { |
1494 | error = bhv_vop_flushinval_pages(vp, toss_start, -1, FI_REMAPF_LOCKED); | 1496 | error = xfs_flushinval_pages(ip, toss_start, |
1497 | -1, FI_REMAPF_LOCKED); | ||
1495 | } | 1498 | } |
1496 | } | 1499 | } |
1497 | 1500 | ||