diff options
author | 2020-09-08 11:44:10 +0900 | |
---|---|---|
committer | 2020-09-11 11:11:26 -0700 | |
commit | c2759ebaf7e8f5510d0a77bd5003a20375ea6ed5 (patch) | |
tree | 36a905fc9badb003d76fd36342f98ad33dfaf7ec /fs/f2fs/debug.c | |
parent | f2fs: trace: fix typo (diff) | |
download | linux-rng-c2759ebaf7e8f5510d0a77bd5003a20375ea6ed5.tar.xz linux-rng-c2759ebaf7e8f5510d0a77bd5003a20375ea6ed5.zip |
f2fs: change i_compr_blocks of inode to atomic value
writepages() can be concurrently invoked for the same file by different
threads such as a thread fsyncing the file and a kworker kernel thread.
So, changing i_compr_blocks without protection is racy and we need to
protect it by changing it with atomic type value. Plus, we don't need
a 64bit value for i_compr_blocks, so just we will use a atomic value,
not atomic64.
Signed-off-by: Daeho Jeong <daehojeong@google.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/debug.c')
0 files changed, 0 insertions, 0 deletions