f2fs: change to use atomic_t type form sbi.atomic_files
authorChao Yu <chao@kernel.org>
Tue, 4 Oct 2022 01:41:02 +0000 (09:41 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 7 Oct 2022 19:57:26 +0000 (12:57 -0700)
commitb4dac1203f39821c6119033cdeebcea83cf45786
tree951da5ab16c58dfac8fde7e14cd58abef9e6a15b
parent8ec071c363da3f45585b338b2037de289379939c
f2fs: change to use atomic_t type form sbi.atomic_files

inode_lock[ATOMIC_FILE] was used for protecting sbi->atomic_files,
update atomic_files variable's type to atomic_t instead of unsigned
int, then inode_lock[ATOMIC_FILE] can be obsoleted.

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