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>
This commit is contained in:
Changman Lee 2014-11-27 16:03:08 +09:00 коммит произвёл Jaegeuk Kim
Родитель 95f5b0fc5e
Коммит 31a3268839
1 изменённых файлов: 17 добавлений и 17 удалений

Просмотреть файл

@ -603,27 +603,27 @@ next_step:
data_page = find_data_page(inode, data_page = find_data_page(inode,
start_bidx + ofs_in_node, false); start_bidx + ofs_in_node, false);
if (IS_ERR(data_page)) if (IS_ERR(data_page)) {
goto next_iput; iput(inode);
continue;
}
f2fs_put_page(data_page, 0); f2fs_put_page(data_page, 0);
add_gc_inode(inode, ilist); add_gc_inode(inode, ilist);
} else { continue;
inode = find_gc_inode(dni.ino, ilist); }
if (inode) {
start_bidx = start_bidx_of_node(nofs, /* phase 3 */
F2FS_I(inode)); inode = find_gc_inode(dni.ino, ilist);
data_page = get_lock_data_page(inode, if (inode) {
start_bidx + ofs_in_node); start_bidx = start_bidx_of_node(nofs, F2FS_I(inode));
if (IS_ERR(data_page)) data_page = get_lock_data_page(inode,
continue; start_bidx + ofs_in_node);
move_data_page(inode, data_page, gc_type); if (IS_ERR(data_page))
stat_inc_data_blk_count(sbi, 1); continue;
} move_data_page(inode, data_page, gc_type);
stat_inc_data_blk_count(sbi, 1);
} }
continue;
next_iput:
iput(inode);
} }
if (++phase < 4) if (++phase < 4)