f2fs: fix a plint compile warning
authorHou Pengyang <houpengyang@huawei.com>
Mon, 27 Feb 2017 13:02:59 +0000 (13:02 +0000)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 27 Feb 2017 18:51:21 +0000 (10:51 -0800)
fix such pclint warning:
...
Loss of precision (arg. no. 2) (unsigned long long to unsigned int))

Signed-off-by: Hou Pengyang <houpengyang@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/gc.c

index 023f043edefd40cabc49cdd18ca3eea692e988df..418fd988164677623cf0ad305d34f7855fb608dd 100644 (file)
@@ -1009,6 +1009,6 @@ void build_gc_manager(struct f2fs_sb_info *sbi)
        ovp_count = SM_I(sbi)->ovp_segments << sbi->log_blocks_per_seg;
        blocks_per_sec = sbi->blocks_per_seg * sbi->segs_per_sec;
 
-       sbi->fggc_threshold = div_u64((main_count - ovp_count) * blocks_per_sec,
+       sbi->fggc_threshold = div64_u64((main_count - ovp_count) * blocks_per_sec,
                                        (main_count - resv_count));
 }