ocfs2: Fix directory link count checks in ocfs2_link()
authorTiger Yang <tiger.yang@oracle.com>
Fri, 1 Sep 2006 03:39:47 +0000 (20:39 -0700)
committerMark Fasheh <mark.fasheh@oracle.com>
Wed, 20 Sep 2006 22:52:27 +0000 (15:52 -0700)
commit0f62de2c9ca60a35f63122e7ea992cee8aae4bef
tree31af0006aedea3a22e463198b5c4a00ca893bf1c
parenta663e30513d7ecc77dd71d474e7646bf78c0ba62
ocfs2: Fix directory link count checks in ocfs2_link()

Remove the redundant "i_nlink >= OCFS2_LINK_MAX" check and adds an unlinked
directory check in ocfs2_link().

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