]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit024a948eb4b7b594de1a530f9a7a03a29b4e6d12
tree64cff853b2789f18fed41884641d0c0770ac1978
parent05595ec2af4673ac148fce676ebabc2a9d7a0d55
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