f2fs: Fix signedness bugs in f2fs_gc_pinned_control functions
PATCH 1/1 f2fs: Fix signedness bugs in f2fs_gc_pinned_control functions
Fix the following smatch warning:
fs/f2fs/gc.c:688 f2fs_gc_pinned_control() warn: signedness bug returning '(-16)'.
Reported-by Abaci Robot <[email protected]>
Signed-off-by Jiapeng Chong <[email protected]>
--- fs/f2fs/gc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/f2fs/gc.c +1 -1
@@ -679,7 +679,7 @@ static void f2fs_unpin_all_sections(struct f2fs_sb_info *sbi, bool enable)DIRTY_I (sbi)->enable_pin_section = enable; } -static bool f2fs_gc_pinned_control (struct inode *inode,int gc_type, +static int f2fs_gc_pinned_control (struct inode *inode,int gc_type,unsigned int segno) {if (!f2fs_is_pinned_file (inode))
Signature · 1 line
2.20.1.7.g153144c
Chao Yu
maintainerQuoted 4 lines · Jiapeng Chong
Fix the following smatch warning:
fs/f2fs/gc.c:688f2fs_gc_pinned_control()warn: signedness bug returning '(-16)'.
Oops, thanks for catching this...
It's better to merge this patch into original patch, if you don't mind?
Thanks,
Quoted 9 lines · Chao Yu
Quoted 4 lines · Jiapeng Chong
Fix the following smatch warning:
fs/f2fs/gc.c:688f2fs_gc_pinned_control()warn: signedness bug returning '(-16)'.Oops, thanks for catching this...
It's better to merge this patch into original patch, if you don't mind?
Applied.
Quoted 2 lines
Thanks,