aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6/xfs_vnode.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2007-08-28 21:44:37 -0400
committerTim Shimmin <tes@chook.melbourne.sgi.com>2007-10-15 21:37:29 -0400
commitb3aea4edc2903fdee34920630b8b2433f6452f02 (patch)
tree9d9e93c4dac6dc5a30522e0c2ae051e3aad46b1b /fs/xfs/linux-2.6/xfs_vnode.c
parent2f6f7b3d9b5600e1f6e7622c62ab30f36bd0f57f (diff)
[XFS] kill the v_flag member in struct bhv_vnode
All flags previously handled at the vnode level are not in the xfs_inode where we already have a flags mechanisms and free bits for flags previously in the vnode. SGI-PV: 969608 SGI-Modid: xfs-linux-melb:xfs-kern:29495a 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.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/fs/xfs/linux-2.6/xfs_vnode.c b/fs/xfs/linux-2.6/xfs_vnode.c
index 342c57879901..e6c559aee446 100644
--- a/fs/xfs/linux-2.6/xfs_vnode.c
+++ b/fs/xfs/linux-2.6/xfs_vnode.c
@@ -84,9 +84,6 @@ vn_initialize(
84 XFS_STATS_INC(vn_active); 84 XFS_STATS_INC(vn_active);
85 XFS_STATS_INC(vn_alloc); 85 XFS_STATS_INC(vn_alloc);
86 86
87 vp->v_flag = VMODIFIED;
88 spinlock_init(&vp->v_lock, "v_lock");
89
90 spin_lock(&vnumber_lock); 87 spin_lock(&vnumber_lock);
91 if (!++vn_generation) /* v_number shouldn't be zero */ 88 if (!++vn_generation) /* v_number shouldn't be zero */
92 vn_generation++; 89 vn_generation++;
@@ -157,7 +154,7 @@ __vn_revalidate(
157 error = xfs_getattr(xfs_vtoi(vp), vattr, 0); 154 error = xfs_getattr(xfs_vtoi(vp), vattr, 0);
158 if (likely(!error)) { 155 if (likely(!error)) {
159 vn_revalidate_core(vp, vattr); 156 vn_revalidate_core(vp, vattr);
160 VUNMODIFY(vp); 157 xfs_iflags_clear(xfs_vtoi(vp), XFS_IMODIFIED);
161 } 158 }
162 return -error; 159 return -error;
163} 160}
@@ -182,10 +179,8 @@ vn_hold(
182 179
183 XFS_STATS_INC(vn_hold); 180 XFS_STATS_INC(vn_hold);
184 181
185 VN_LOCK(vp);
186 inode = igrab(vn_to_inode(vp)); 182 inode = igrab(vn_to_inode(vp));
187 ASSERT(inode); 183 ASSERT(inode);
188 VN_UNLOCK(vp, 0);
189 184
190 return vp; 185 return vp;
191} 186}
@@ -199,7 +194,7 @@ vn_hold(
199/* 2 */ (void *)(__psint_t) line, \ 194/* 2 */ (void *)(__psint_t) line, \
200/* 3 */ (void *)(__psint_t)(vn_count(vp)), \ 195/* 3 */ (void *)(__psint_t)(vn_count(vp)), \
201/* 4 */ (void *)(ra), \ 196/* 4 */ (void *)(ra), \
202/* 5 */ (void *)(__psunsigned_t)(vp)->v_flag, \ 197/* 5 */ NULL, \
203/* 6 */ (void *)(__psint_t)current_cpu(), \ 198/* 6 */ (void *)(__psint_t)current_cpu(), \
204/* 7 */ (void *)(__psint_t)current_pid(), \ 199/* 7 */ (void *)(__psint_t)current_pid(), \
205/* 8 */ (void *)__return_address, \ 200/* 8 */ (void *)__return_address, \