diff options
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_vnode.c')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_vnode.c | 9 |
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, \ |