diff options
author | Gu Zheng <guz.fnst@cn.fujitsu.com> | 2014-10-20 05:45:48 -0400 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-11-03 19:07:35 -0500 |
commit | 8a2d0ace3af74825e4f1e6fb962f7ee8ef4d9281 (patch) | |
tree | fdf2f6417cf32f9aae8efc48cebec09abdd71f9a | |
parent | 9bd27ae4aafc9bfee6c8791f7d801ea16cc5622b (diff) |
f2fs: remove the seems unneeded argument 'type' from __get_victim
Remove the unneeded argument 'type' from __get_victim, use
NO_CHECK_TYPE directly when calling v_ops->get_victim().
Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
-rw-r--r-- | fs/f2fs/gc.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c index 2a8f4acdb86b..7151d7de7d95 100644 --- a/fs/f2fs/gc.c +++ b/fs/f2fs/gc.c | |||
@@ -646,12 +646,14 @@ next_iput: | |||
646 | } | 646 | } |
647 | 647 | ||
648 | static int __get_victim(struct f2fs_sb_info *sbi, unsigned int *victim, | 648 | static int __get_victim(struct f2fs_sb_info *sbi, unsigned int *victim, |
649 | int gc_type, int type) | 649 | int gc_type) |
650 | { | 650 | { |
651 | struct sit_info *sit_i = SIT_I(sbi); | 651 | struct sit_info *sit_i = SIT_I(sbi); |
652 | int ret; | 652 | int ret; |
653 | |||
653 | mutex_lock(&sit_i->sentry_lock); | 654 | mutex_lock(&sit_i->sentry_lock); |
654 | ret = DIRTY_I(sbi)->v_ops->get_victim(sbi, victim, gc_type, type, LFS); | 655 | ret = DIRTY_I(sbi)->v_ops->get_victim(sbi, victim, gc_type, |
656 | NO_CHECK_TYPE, LFS); | ||
655 | mutex_unlock(&sit_i->sentry_lock); | 657 | mutex_unlock(&sit_i->sentry_lock); |
656 | return ret; | 658 | return ret; |
657 | } | 659 | } |
@@ -709,7 +711,7 @@ gc_more: | |||
709 | write_checkpoint(sbi, &cpc); | 711 | write_checkpoint(sbi, &cpc); |
710 | } | 712 | } |
711 | 713 | ||
712 | if (!__get_victim(sbi, &segno, gc_type, NO_CHECK_TYPE)) | 714 | if (!__get_victim(sbi, &segno, gc_type)) |
713 | goto stop; | 715 | goto stop; |
714 | ret = 0; | 716 | ret = 0; |
715 | 717 | ||