From: Sahitya Tummala Date: Mon, 26 Nov 2018 08:01:42 +0000 (+0530) Subject: f2fs: adjust trace print in f2fs_get_victim() to cover all paths X-Git-Tag: rel_imx_5.10.35_2.0.0-somdevices.0~5618^2~20 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=e3c59108da8655de78fe59843372b8cfab1a8e33;p=linux.git 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 Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c index 9a60801ab1c5..71462f2e47d4 100644 --- a/fs/f2fs/gc.c +++ b/fs/f2fs/gc.c @@ -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;