mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
f2fs: adjust trace print in f2fs_get_victim() to cover all paths
Adjust the trace print in f2fs_get_victim() to cover GC done by F2FS_IOC_GARBAGE_COLLECT_RANGE. Signed-off-by: Sahitya Tummala <[email protected]> Reviewed-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
This commit is contained in:
parent
08ac9a3870
commit
e3c59108da
1 changed files with 3 additions and 2 deletions
|
|
@ -420,11 +420,12 @@ got_result:
|
|||
set_bit(secno, dirty_i->victim_secmap);
|
||||
}
|
||||
|
||||
}
|
||||
out:
|
||||
if (p.min_segno != NULL_SEGNO)
|
||||
trace_f2fs_get_victim(sbi->sb, type, gc_type, &p,
|
||||
sbi->cur_victim_sec,
|
||||
prefree_segments(sbi), free_segments(sbi));
|
||||
}
|
||||
out:
|
||||
mutex_unlock(&dirty_i->seglist_lock);
|
||||
|
||||
return (p.min_segno == NULL_SEGNO) ? 0 : 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue