CC: [email protected] BCC: [email protected] CC: "Darrick J. Wong" <[email protected]> CC: [email protected] TO: "Darrick J. Wong" <[email protected]>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git vectorized-scrub head: 1fcd9cea011a657d62ee332d161966c1ec92ffd5 commit: 4e21f42d6ab0dbc3fedbd0a56895302d363f17ac [321/401] xfs: scrub the realtime rmapbt :::::: branch date: 24 hours ago :::::: commit date: 24 hours ago config: microblaze-randconfig-m031-20220601 (https://download.01.org/0day-ci/archive/20220603/[email protected]/config) compiler: microblaze-linux-gcc (GCC) 11.3.0 If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> smatch warnings: fs/xfs/scrub/rtrmap.c:114 xchk_rtrmap_mergeable() warn: impossible condition '(r1->rm_blockcount + r2->rm_blockcount > (~0)) => (0-u64max > u64max)' vim +114 fs/xfs/scrub/rtrmap.c 4e21f42d6ab0db Darrick J. Wong 2022-01-06 96 4e21f42d6ab0db Darrick J. Wong 2022-01-06 97 /* Decide if two reverse-mapping records can be merged. */ 4e21f42d6ab0db Darrick J. Wong 2022-01-06 98 static inline bool 4e21f42d6ab0db Darrick J. Wong 2022-01-06 99 xchk_rtrmap_mergeable( 4e21f42d6ab0db Darrick J. Wong 2022-01-06 100 struct xchk_rtrmap *cr, 4e21f42d6ab0db Darrick J. Wong 2022-01-06 101 const struct xfs_rmap_irec *r2) 4e21f42d6ab0db Darrick J. Wong 2022-01-06 102 { 4e21f42d6ab0db Darrick J. Wong 2022-01-06 103 const struct xfs_rmap_irec *r1 = &cr->prev_rec; 4e21f42d6ab0db Darrick J. Wong 2022-01-06 104 4e21f42d6ab0db Darrick J. Wong 2022-01-06 105 /* Ignore if prev_rec is not yet initialized. */ 4e21f42d6ab0db Darrick J. Wong 2022-01-06 106 if (cr->prev_rec.rm_blockcount == 0) 4e21f42d6ab0db Darrick J. Wong 2022-01-06 107 return false; 4e21f42d6ab0db Darrick J. Wong 2022-01-06 108 4e21f42d6ab0db Darrick J. Wong 2022-01-06 109 if (r1->rm_owner != r2->rm_owner) 4e21f42d6ab0db Darrick J. Wong 2022-01-06 110 return false; 4e21f42d6ab0db Darrick J. Wong 2022-01-06 111 if (r1->rm_startblock + r1->rm_blockcount != r2->rm_startblock) 4e21f42d6ab0db Darrick J. Wong 2022-01-06 112 return false; 4e21f42d6ab0db Darrick J. Wong 2022-01-06 113 if ((unsigned long long)r1->rm_blockcount + r2->rm_blockcount > 4e21f42d6ab0db Darrick J. Wong 2022-01-06 @114 XFS_RTRMAP_LEN_MAX) 4e21f42d6ab0db Darrick J. Wong 2022-01-06 115 return false; 4e21f42d6ab0db Darrick J. Wong 2022-01-06 116 if (r1->rm_flags != r2->rm_flags) 4e21f42d6ab0db Darrick J. Wong 2022-01-06 117 return false; 4e21f42d6ab0db Darrick J. Wong 2022-01-06 118 return r1->rm_offset + r1->rm_blockcount == r2->rm_offset; 4e21f42d6ab0db Darrick J. Wong 2022-01-06 119 } 4e21f42d6ab0db Darrick J. Wong 2022-01-06 120 -- 0-DAY CI Kernel Test Service https://01.org/lkp _______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
