f2fs: fix to set noatime and immutable flag for quota file
authorChao Yu <chao@kernel.org>
Sat, 27 May 2023 00:15:39 +0000 (08:15 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 12 Jun 2023 20:04:08 +0000 (13:04 -0700)
commit90b7c4b748d897226577abb14480ec61a7c2a1f7
treec79db569cedf074edccb70b225614374c3104673
parent77e820ea73a5b86f434a776d63e1e5f50a366c19
f2fs: fix to set noatime and immutable flag for quota file

We should set noatime bit for quota files, since no one cares about
atime of quota file, and we should set immutalbe bit as well, due to
nobody should write to the file through exported interfaces.

Meanwhile this patch use inode_lock to avoid race condition during
inode->i_flags, f2fs_inode->i_flags update.

Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c