aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/gc.c
diff options
context:
space:
mode:
authorChangman Lee <cm224.lee@samsung.com>2014-11-27 02:03:08 -0500
committerJaegeuk Kim <jaegeuk@kernel.org>2014-11-27 23:30:17 -0500
commit31a3268839c1aa808a5109111ec847b95e1bb114 (patch)
tree2d2c6f020a0c4e241d1e95c4b3d6ae5f90e66d61 /fs/f2fs/gc.c
parent95f5b0fc5e25d94ace84dbf5bb4acb8b80b4f062 (diff)
f2fs: cleanup if-statement of phase in gc_data_segment
Little cleanup to distinguish each phase easily Signed-off-by: Changman Lee <cm224.lee@samsung.com> [Jaegeuk Kim: modify indentation for code readability] Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/gc.c')
-rw-r--r--fs/f2fs/gc.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c
index 657683c9ee48..6acd5f240224 100644
--- a/fs/f2fs/gc.c
+++ b/fs/f2fs/gc.c
@@ -603,27 +603,27 @@ next_step:
603 603
604 data_page = find_data_page(inode, 604 data_page = find_data_page(inode,
605 start_bidx + ofs_in_node, false); 605 start_bidx + ofs_in_node, false);
606 if (IS_ERR(data_page)) 606 if (IS_ERR(data_page)) {
607 goto next_iput; 607 iput(inode);
608 continue;
609 }
608 610
609 f2fs_put_page(data_page, 0); 611 f2fs_put_page(data_page, 0);
610 add_gc_inode(inode, ilist); 612 add_gc_inode(inode, ilist);
611 } else { 613 continue;
612 inode = find_gc_inode(dni.ino, ilist); 614 }
613 if (inode) { 615
614 start_bidx = start_bidx_of_node(nofs, 616 /* phase 3 */
615 F2FS_I(inode)); 617 inode = find_gc_inode(dni.ino, ilist);
616 data_page = get_lock_data_page(inode, 618 if (inode) {
619 start_bidx = start_bidx_of_node(nofs, F2FS_I(inode));
620 data_page = get_lock_data_page(inode,
617 start_bidx + ofs_in_node); 621 start_bidx + ofs_in_node);
618 if (IS_ERR(data_page)) 622 if (IS_ERR(data_page))
619 continue; 623 continue;
620 move_data_page(inode, data_page, gc_type); 624 move_data_page(inode, data_page, gc_type);
621 stat_inc_data_blk_count(sbi, 1); 625 stat_inc_data_blk_count(sbi, 1);
622 }
623 } 626 }
624 continue;
625next_iput:
626 iput(inode);
627 } 627 }
628 628
629 if (++phase < 4) 629 if (++phase < 4)