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.f...@cn.fujitsu.com>
---
 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 2a8f4ac..7151d7d 100644
--- a/fs/f2fs/gc.c
+++ b/fs/f2fs/gc.c
@@ -646,12 +646,14 @@ next_iput:
 }
 
 static int __get_victim(struct f2fs_sb_info *sbi, unsigned int *victim,
-                                               int gc_type, int type)
+                       int gc_type)
 {
        struct sit_info *sit_i = SIT_I(sbi);
        int ret;
+
        mutex_lock(&sit_i->sentry_lock);
-       ret = DIRTY_I(sbi)->v_ops->get_victim(sbi, victim, gc_type, type, LFS);
+       ret = DIRTY_I(sbi)->v_ops->get_victim(sbi, victim, gc_type,
+                                             NO_CHECK_TYPE, LFS);
        mutex_unlock(&sit_i->sentry_lock);
        return ret;
 }
@@ -709,7 +711,7 @@ gc_more:
                write_checkpoint(sbi, &cpc);
        }
 
-       if (!__get_victim(sbi, &segno, gc_type, NO_CHECK_TYPE))
+       if (!__get_victim(sbi, &segno, gc_type))
                goto stop;
        ret = 0;
 
-- 
1.7.7


------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

Reply via email to