Repository navigation
Commit a303b0a
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>1 parent b5d1519 commit a303b0a
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4443 | 4443 | | |
4444 | 4444 | | |
4445 | 4445 | | |
4446 | | - | |
| 4446 | + | |
| 4447 | + | |
| 4448 | + | |
4447 | 4449 | | |
| 4450 | + | |
| 4451 | + | |
| 4452 | + | |
4448 | 4453 | | |
4449 | 4454 | | |
4450 | 4455 | | |
| |||
0 commit comments