Commit c43df29b authored by Stephen Lord's avatar Stephen Lord

[XFS] move vn_alloc stat from xfs_iget to vn_initialize

SGI Modid: 2.5.x-xfs:slinx:140700a
parent ee28133e
......@@ -137,6 +137,7 @@ vn_initialize(struct inode *inode)
struct vnode *vp = LINVFS_GET_VP(inode);
XFS_STATS_INC(xfsstats.vn_active);
XFS_STATS_INC(xfsstats.vn_alloc);
vp->v_flag = VMODIFIED;
spinlock_init(&vp->v_lock, "v_lock");
......
......@@ -422,7 +422,6 @@ xfs_iget(
vp = LINVFS_GET_VP(inode);
if (inode->i_state & I_NEW) {
inode_allocate:
XFS_STATS_INC(xfsstats.vn_alloc);
vn_initialize(inode);
error = xfs_iget_core(vp, mp, tp, ino,
lock_flags, ipp, bno);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment