new helper: ihold()
[linux-2.6.git] / fs / xfs / linux-2.6 / xfs_iops.c
index 71d83c9..96107ef 100644 (file)
@@ -317,7 +317,7 @@ xfs_vn_link(
        if (unlikely(error))
                return -error;
 
-       atomic_inc(&inode->i_count);
+       ihold(inode);
        d_instantiate(dentry, inode);
        return 0;
 }