summaryrefslogtreecommitdiff
path: root/fs/f2fs
diff options
context:
space:
mode:
authorHou Pengyang <houpengyang@huawei.com>2017-02-27 16:02:59 +0300
committerJaegeuk Kim <jaegeuk@kernel.org>2017-02-27 21:51:21 +0300
commit37e79cd31c2c4dcd7e149958ca3cae9d180c63c7 (patch)
tree7a329fc7e307540f30f9d3c0edde1f66f07006bc /fs/f2fs
parentb8d96a30b6f1c29e1ab716b3727a63fe7268f661 (diff)
downloadlinux-37e79cd31c2c4dcd7e149958ca3cae9d180c63c7.tar.xz
f2fs: fix a plint compile warning
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>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c
index 023f043edefd..418fd9881646 100644
--- a/fs/f2fs/gc.c
+++ b/fs/f2fs/gc.c
@@ -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));
}