commit | a0d00fad353d4a315f54fb345aa1c65b3771389b | [log] [tgz] |
---|---|---|
author | Chao Yu <yuchao0@huawei.com> | Mon Oct 09 17:55:19 2017 +0800 |
committer | Jaegeuk Kim <jaegeuk@kernel.org> | Thu Oct 26 10:44:12 2017 +0200 |
tree | 65f4c30f4ca73234c64a42ff9a88e02ad0eb45fa | |
parent | ebf7c522fdc2ec2fa0fc2351ef613841f79586e5 [diff] |
f2fs: fix to avoid race when accessing last_disk_size last_disk_size could be wrong due to concurrently updating, so using i_sem semaphore to make last_disk_size updating exclusive to fix this issue. Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>