Chao Yu a303b0ac92 f2fs: fix to avoid GC/mmap race with f2fs_truncate()
It missed to hold i_gc_rwsem and i_map_sem around f2fs_truncate()
in f2fs_file_write_iter() to avoid racing with background GC and
mmap, fix it.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2021-04-06 07:16:22 -07:00
..
2021-02-23 13:39:45 -08:00
2021-01-24 14:27:20 +01:00
2020-12-17 11:18:00 -08:00
2021-03-30 18:48:56 -07:00
2021-03-30 18:48:56 -07:00
2021-03-30 18:48:56 -07:00
2021-03-26 10:27:44 -07:00
2021-01-27 15:20:07 -08:00
2021-02-23 13:39:45 -08:00
2021-04-01 18:36:35 -07:00
2021-02-23 13:39:45 -08:00