]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
f2fs: change size parameter of __has_cursum_space() to unsigned int
authorYongpeng Yang <yangyongpeng@xiaomi.com>
Tue, 13 Jan 2026 15:21:38 +0000 (23:21 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 27 Jan 2026 02:45:58 +0000 (02:45 +0000)
All callers of __has_cursum_space() pass an unsigned int value as the
size parameter. Change the parameter type to unsigned int accordingly.

Signed-off-by: Yongpeng Yang <yangyongpeng@xiaomi.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h

index 064164ffa489df6a666e7953eb2629946f15c5c9..47f316ac05a35a29340ce876e1195c556f04f653 100644 (file)
@@ -2875,7 +2875,7 @@ static inline block_t __start_sum_addr(struct f2fs_sb_info *sbi)
 }
 
 static inline bool __has_cursum_space(struct f2fs_sb_info *sbi,
-                       struct f2fs_journal *journal, int size, int type)
+               struct f2fs_journal *journal, unsigned int size, int type)
 {
        if (type == NAT_JOURNAL)
                return size <= MAX_NAT_JENTRIES(sbi, journal);