ocfs2: move nlink check in ocfs2_mknod()
authorMark Fasheh <mark.fasheh@oracle.com>
Wed, 9 Aug 2006 18:45:07 +0000 (11:45 -0700)
committerMark Fasheh <mark.fasheh@oracle.com>
Wed, 20 Sep 2006 22:52:08 +0000 (15:52 -0700)
commita663e30513d7ecc77dd71d474e7646bf78c0ba62
treeac37a5d33b62cce82df4e35a816f73f4631e339a
parent471e3f57286da7ce8820ad42c77d5f5f49d56a41
ocfs2: move nlink check in ocfs2_mknod()

The dir nlink check in ocfs2_mknod() was being done outside of the cluster
lock, which means we could have been checking against a stale version of the
inode. Fix this by doing the check after the cluster lock instead.

Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
fs/ocfs2/namei.c