f2fs: make posix_acl_create() safer and cleaner
authorChao Yu <chao2.yu@samsung.com>
Sat, 18 Apr 2015 10:03:58 +0000 (18:03 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 7 May 2015 18:38:31 +0000 (11:38 -0700)
commit272e083f7a968bc81dd01e4f16860a1e9617d454
tree64cff853b2789f18fed41884641d0c0770ac1978
parent5d799881391277e52787df06bafe865e91ae8296
f2fs: make posix_acl_create() safer and cleaner

Our f2fs_acl_create is copied from posix_acl_create in ./fs/posix_acl.c and
modified to avoid deadlock bug when inline_dentry feature is enabled.

Dan Carpenter rewrites posix_acl_create in commit 2799563b281f
("fs/posix_acl.c: make posix_acl_create() safer and cleaner") to make this
function more safer, so that we can avoid potential bug in its caller,
especially for ocfs2.

Let's back port the patch to f2fs.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/acl.c