f2fs: fix the fault of checking F2FS_LINK_MAX for rename inode
authorKinglong Mee <kinglongmee@gmail.com>
Sat, 4 Mar 2017 13:48:28 +0000 (21:48 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 21 Mar 2017 20:52:16 +0000 (16:52 -0400)
commite2f0e962ac2190ab4e0d1ee4b258273d3a51e689
tree43225c527a802eda326ea240081b9a59b709e779
parent4f1bca9f0db3dc82297092eafdb95f58ecef5d7a
f2fs: fix the fault of checking F2FS_LINK_MAX for rename inode

The parent directory's nlink will change, not the inode.

Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/namei.c