summaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2018-05-15 12:59:55 +0200
committerJaegeuk Kim <jaegeuk@kernel.org>2018-05-31 20:31:50 +0200
commit5ad25442b6f50d587c2a5cc93b31c682ff316e4c (patch)
treeb26f8bf3dd8a30ea4c3eeefc4e62905d565ee887 /fs/f2fs
parentf2fs: fix to let checkpoint guarantee atomic page persistence (diff)
downloadlinux-5ad25442b6f50d587c2a5cc93b31c682ff316e4c.tar.xz
linux-5ad25442b6f50d587c2a5cc93b31c682ff316e4c.zip
f2fs: fix to initialize min_mtime with ULLONG_MAX
Since sit_i.min_mtime's type is unsigned long long, so we should initialize it with max value of the type ULLONG_MAX instead of LLONG_MAX. Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/segment.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c
index 9937265a63c5..e281150c9345 100644
--- a/fs/f2fs/segment.c
+++ b/fs/f2fs/segment.c
@@ -3838,7 +3838,7 @@ static void init_min_max_mtime(struct f2fs_sb_info *sbi)
down_write(&sit_i->sentry_lock);
- sit_i->min_mtime = LLONG_MAX;
+ sit_i->min_mtime = ULLONG_MAX;
for (segno = 0; segno < MAIN_SEGS(sbi); segno += sbi->segs_per_sec) {
unsigned int i;