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/linux-2.6/xfs_vnode.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/linux-2.6/xfs_vnode.c')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_vnode.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/xfs/linux-2.6/xfs_vnode.c b/fs/xfs/linux-2.6/xfs_vnode.c index ada24baf88de..ad0494c5c0d1 100644 --- a/fs/xfs/linux-2.6/xfs_vnode.c +++ b/fs/xfs/linux-2.6/xfs_vnode.c | |||
@@ -16,6 +16,9 @@ | |||
16 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | 16 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
17 | */ | 17 | */ |
18 | #include "xfs.h" | 18 | #include "xfs.h" |
19 | #include "xfs_vnodeops.h" | ||
20 | #include "xfs_bmap_btree.h" | ||
21 | #include "xfs_inode.h" | ||
19 | 22 | ||
20 | uint64_t vn_generation; /* vnode generation number */ | 23 | uint64_t vn_generation; /* vnode generation number */ |
21 | DEFINE_SPINLOCK(vnumber_lock); | 24 | DEFINE_SPINLOCK(vnumber_lock); |
@@ -90,9 +93,6 @@ vn_initialize( | |||
90 | 93 | ||
91 | ASSERT(VN_CACHED(vp) == 0); | 94 | ASSERT(VN_CACHED(vp) == 0); |
92 | 95 | ||
93 | /* Initialize the first behavior and the behavior chain head. */ | ||
94 | vn_bhv_head_init(VN_BHV_HEAD(vp), "vnode"); | ||
95 | |||
96 | atomic_set(&vp->v_iocount, 0); | 96 | atomic_set(&vp->v_iocount, 0); |
97 | 97 | ||
98 | #ifdef XFS_VNODE_TRACE | 98 | #ifdef XFS_VNODE_TRACE |
@@ -152,7 +152,7 @@ __vn_revalidate( | |||
152 | 152 | ||
153 | vn_trace_entry(vp, __FUNCTION__, (inst_t *)__return_address); | 153 | vn_trace_entry(vp, __FUNCTION__, (inst_t *)__return_address); |
154 | vattr->va_mask = XFS_AT_STAT | XFS_AT_XFLAGS; | 154 | vattr->va_mask = XFS_AT_STAT | XFS_AT_XFLAGS; |
155 | error = bhv_vop_getattr(vp, vattr, 0, NULL); | 155 | error = xfs_getattr(xfs_vtoi(vp), vattr, 0); |
156 | if (likely(!error)) { | 156 | if (likely(!error)) { |
157 | vn_revalidate_core(vp, vattr); | 157 | vn_revalidate_core(vp, vattr); |
158 | VUNMODIFY(vp); | 158 | VUNMODIFY(vp); |