diff options
| author | Chao Yu <chao@kernel.org> | 2026-08-12 12:17:55 +0000 |
|---|---|---|
| committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2026-08-17 21:43:38 +0000 |
| commit | 5d49025a4e596c4c9ac0c519ef9f9a2c91396856 (patch) | |
| tree | 75584cffe9b1c48762696951f44b9267bb915262 /scripts/const_structs.checkpatch | |
| parent | fa487f56efba6344aef67d871688f0908fe08af3 (diff) | |
| download | linux-5d49025a4e596c4c9ac0c519ef9f9a2c91396856.tar.gz linux-5d49025a4e596c4c9ac0c519ef9f9a2c91396856.zip | |
f2fs: fix to shrink gc_lock coverage in f2fs_gc_range()
In f2fs_allocate_pinning_section(), we will hold gc_lock before calling
f2fs_gc_range() to migrate section in conventional zone, we may suffer
worse case because we may need to traverse and migrate multiple sections
if we failed to move blocks in section due to lot of reasons: ENOMEM,
fail to migrate block of pinfile, racing on i_gc_rwsem.
To avoid hold gc_lock for long time to block checkpoint, let's hold
the lock and only try to migrate one section.
Cc: Daeho Jeong <daehojeong@google.com>
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions
