Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 70843
b: refs/heads/master
c: 2aeaa25
h: refs/heads/master
i:
  70841: 2c483d5
  70839: e901e19
v: v3
  • Loading branch information
Christoph Hellwig authored and Tim Shimmin committed Oct 16, 2007
1 parent f1a1ea6 commit 8fcb091
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1543d79c45a374f934f95ca34d87e2eeeb2039b4
refs/heads/master: 2aeaa258c0527026228c43148ec6dffdc56bea1c
8 changes: 0 additions & 8 deletions trunk/fs/xfs/linux-2.6/xfs_vnode.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
#include "xfs_ag.h"
#include "xfs_mount.h"

uint64_t vn_generation; /* vnode generation number */
DEFINE_SPINLOCK(vnumber_lock);

/*
* Dedicated vnode inactive/reclaim sync semaphores.
Expand Down Expand Up @@ -95,12 +93,6 @@ vn_initialize(
XFS_STATS_INC(vn_active);
XFS_STATS_INC(vn_alloc);

spin_lock(&vnumber_lock);
if (!++vn_generation) /* v_number shouldn't be zero */
vn_generation++;
vp->v_number = vn_generation;
spin_unlock(&vnumber_lock);

ASSERT(VN_CACHED(vp) == 0);

return vp;
Expand Down
1 change: 0 additions & 1 deletion trunk/fs/xfs/linux-2.6/xfs_vnode.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ typedef struct dentry bhv_vname_t;
typedef __u64 bhv_vnumber_t;

typedef struct bhv_vnode {
bhv_vnumber_t v_number; /* in-core vnode number */
struct inode v_inode; /* Linux inode */
/* inode MUST be last */
} bhv_vnode_t;
Expand Down
4 changes: 2 additions & 2 deletions trunk/fs/xfs/xfs_iget.c
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,8 @@ xfs_inode_lock_init(
bhv_vnode_t *vp)
{
mrlock_init(&ip->i_lock, MRLOCK_ALLOW_EQUAL_PRI|MRLOCK_BARRIER,
"xfsino", (long)vp->v_number);
mrlock_init(&ip->i_iolock, MRLOCK_BARRIER, "xfsio", vp->v_number);
"xfsino", ip->i_ino);
mrlock_init(&ip->i_iolock, MRLOCK_BARRIER, "xfsio", ip->i_ino);
init_waitqueue_head(&ip->i_ipin_wait);
atomic_set(&ip->i_pincount, 0);
initnsema(&ip->i_flock, 1, "xfsfino");
Expand Down

0 comments on commit 8fcb091

Please sign in to comment.