aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/xfs/linux-2.6/xfs_vnode.c8
-rw-r--r--fs/xfs/linux-2.6/xfs_vnode.h1
-rw-r--r--fs/xfs/xfs_iget.c4
3 files changed, 2 insertions, 11 deletions
diff --git a/fs/xfs/linux-2.6/xfs_vnode.c b/fs/xfs/linux-2.6/xfs_vnode.c
index 9d9464cf8de4..b7ff26780a0c 100644
--- a/fs/xfs/linux-2.6/xfs_vnode.c
+++ b/fs/xfs/linux-2.6/xfs_vnode.c
@@ -31,8 +31,6 @@
31#include "xfs_ag.h" 31#include "xfs_ag.h"
32#include "xfs_mount.h" 32#include "xfs_mount.h"
33 33
34uint64_t vn_generation; /* vnode generation number */
35DEFINE_SPINLOCK(vnumber_lock);
36 34
37/* 35/*
38 * Dedicated vnode inactive/reclaim sync semaphores. 36 * Dedicated vnode inactive/reclaim sync semaphores.
@@ -95,12 +93,6 @@ vn_initialize(
95 XFS_STATS_INC(vn_active); 93 XFS_STATS_INC(vn_active);
96 XFS_STATS_INC(vn_alloc); 94 XFS_STATS_INC(vn_alloc);
97 95
98 spin_lock(&vnumber_lock);
99 if (!++vn_generation) /* v_number shouldn't be zero */
100 vn_generation++;
101 vp->v_number = vn_generation;
102 spin_unlock(&vnumber_lock);
103
104 ASSERT(VN_CACHED(vp) == 0); 96 ASSERT(VN_CACHED(vp) == 0);
105 97
106 return vp; 98 return vp;
diff --git a/fs/xfs/linux-2.6/xfs_vnode.h b/fs/xfs/linux-2.6/xfs_vnode.h
index 2b161361c1a0..a5c14a8d546a 100644
--- a/fs/xfs/linux-2.6/xfs_vnode.h
+++ b/fs/xfs/linux-2.6/xfs_vnode.h
@@ -28,7 +28,6 @@ typedef struct dentry bhv_vname_t;
28typedef __u64 bhv_vnumber_t; 28typedef __u64 bhv_vnumber_t;
29 29
30typedef struct bhv_vnode { 30typedef struct bhv_vnode {
31 bhv_vnumber_t v_number; /* in-core vnode number */
32 struct inode v_inode; /* Linux inode */ 31 struct inode v_inode; /* Linux inode */
33 /* inode MUST be last */ 32 /* inode MUST be last */
34} bhv_vnode_t; 33} bhv_vnode_t;
diff --git a/fs/xfs/xfs_iget.c b/fs/xfs/xfs_iget.c
index 001cec705e28..03f32c68731f 100644
--- a/fs/xfs/xfs_iget.c
+++ b/fs/xfs/xfs_iget.c
@@ -421,8 +421,8 @@ xfs_inode_lock_init(
421 bhv_vnode_t *vp) 421 bhv_vnode_t *vp)
422{ 422{
423 mrlock_init(&ip->i_lock, MRLOCK_ALLOW_EQUAL_PRI|MRLOCK_BARRIER, 423 mrlock_init(&ip->i_lock, MRLOCK_ALLOW_EQUAL_PRI|MRLOCK_BARRIER,
424 "xfsino", (long)vp->v_number); 424 "xfsino", ip->i_ino);
425 mrlock_init(&ip->i_iolock, MRLOCK_BARRIER, "xfsio", vp->v_number); 425 mrlock_init(&ip->i_iolock, MRLOCK_BARRIER, "xfsio", ip->i_ino);
426 init_waitqueue_head(&ip->i_ipin_wait); 426 init_waitqueue_head(&ip->i_ipin_wait);
427 atomic_set(&ip->i_pincount, 0); 427 atomic_set(&ip->i_pincount, 0);
428 initnsema(&ip->i_flock, 1, "xfsfino"); 428 initnsema(&ip->i_flock, 1, "xfsfino");