diff options
| author | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-09-21 09:34:48 -0700 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-13 12:34:09 +0200 |
| commit | bee4c5731271033e3ef37ad80713812dcd3fed83 (patch) | |
| tree | 20842766826c11674726fea9e4b845199dd270a6 | |
| parent | e603ce524b690ab7c46db92c007993fc0151d75f (diff) | |
f2fs: should put_page for summary page
We should call put_page for preloaded summary pages in do_garbage_collect.
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
| -rw-r--r-- | fs/f2fs/gc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c index 02f870577..e4145c583 100644 --- a/fs/f2fs/gc.c +++ b/fs/f2fs/gc.c @@ -844,7 +844,7 @@ static int do_garbage_collect(struct f2fs_sb_info *sbi, for (segno = start_segno; segno < end_segno; segno++) { if (get_valid_blocks(sbi, segno, 1) == 0) - continue; + goto next; /* find segment summary of victim */ sum_page = find_get_page(META_MAPPING(sbi), @@ -870,7 +870,7 @@ static int do_garbage_collect(struct f2fs_sb_info *sbi, gc_type); stat_inc_seg_count(sbi, type, gc_type); - +next: f2fs_put_page(sum_page, 0); } |
