Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5ad25442 authored by Chao Yu's avatar Chao Yu Committed by Jaegeuk Kim
Browse files

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: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent e7a4feb0
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -3838,7 +3838,7 @@ static void init_min_max_mtime(struct f2fs_sb_info *sbi)


	down_write(&sit_i->sentry_lock);
	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) {
	for (segno = 0; segno < MAIN_SEGS(sbi); segno += sbi->segs_per_sec) {
		unsigned int i;
		unsigned int i;