diff options
author | Sahitya Tummala <stummala@codeaurora.org> | 2018-11-26 09:01:42 +0100 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-11-27 01:38:49 +0100 |
commit | e3c59108da8655de78fe59843372b8cfab1a8e33 (patch) | |
tree | 6f7f3f86dadd31da15dffe60d62f637c10aacf53 /fs/f2fs | |
parent | f2fs: fix to allow node segment for GC by ioctl path (diff) | |
download | linux-e3c59108da8655de78fe59843372b8cfab1a8e33.tar.xz linux-e3c59108da8655de78fe59843372b8cfab1a8e33.zip |
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 <stummala@codeaurora.org>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/gc.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; |