Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 099f85d6 authored by Chao Yu's avatar Chao Yu Committed by Pranav Vashi
Browse files

f2fs: enhance to update i_mode and acl atomically in f2fs_setattr()



[ Upstream commit 17232e830afb800acdcc22ae8980bf9d330393ef ]

Previously, in f2fs_setattr(), we don't update S_ISUID|S_ISGID|S_ISVTX
bits with S_IRWXUGO bits and acl entries atomically, so in error path,
chmod() may partially success, this patch enhances to make chmod() flow
being atomical.

Change-Id: I98a2585fe960b56b8d1a930eb7cf23e0a47ed3a5
Signed-off-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
Stable-dep-of: aaf8c0b9ae04 ("f2fs: reduce expensive checkpoint trigger frequency")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarPranav Vashi <neobuddy89@gmail.com>
parent d67a208d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment