CC: [email protected] CC: Xiang Gao <[email protected]> TO: Gao Xiang <[email protected]>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/xiang/linux.git xfs/shrink2 head: 783679598b667b3b069ca04aa93ffb537c124b50 commit: 783679598b667b3b069ca04aa93ffb537c124b50 [5/5] xfs: shrink a whole empty AG :::::: branch date: 2 days ago :::::: commit date: 2 days ago config: i386-randconfig-s001-20210108 (attached as .config) compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.3-208-g46a52ca4-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/xiang/linux.git/commit/?id=783679598b667b3b069ca04aa93ffb537c124b50 git remote add xiang-linux https://git.kernel.org/pub/scm/linux/kernel/git/xiang/linux.git git fetch --no-tags xiang-linux xfs/shrink2 git checkout 783679598b667b3b069ca04aa93ffb537c124b50 # save the attached .config to linux build tree make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <[email protected]> "sparse warnings: (new ones prefixed by >>)" >> fs/xfs/libxfs/xfs_alloc.c:471:1: sparse: sparse: unused label 'out' vim +/out +471 fs/xfs/libxfs/xfs_alloc.c 88a60c6c5c46ca5 Gao Xiang 2021-01-04 438 783679598b667b3 Gao Xiang 2021-01-05 439 if (pag->pagf_freeblks + pag->pagf_flcount != be32_to_cpu(agf->agf_length) - mp->m_ag_prealloc_blocks) 88a60c6c5c46ca5 Gao Xiang 2021-01-04 440 return -ENOTEMPTY; 88a60c6c5c46ca5 Gao Xiang 2021-01-04 441 88a60c6c5c46ca5 Gao Xiang 2021-01-04 442 if (be32_to_cpu(agf->agf_levels[XFS_BTNUM_BNO]) > 1 || 88a60c6c5c46ca5 Gao Xiang 2021-01-04 443 be32_to_cpu(agf->agf_levels[XFS_BTNUM_CNT]) > 1) 88a60c6c5c46ca5 Gao Xiang 2021-01-04 444 return -ENOTEMPTY; 88a60c6c5c46ca5 Gao Xiang 2021-01-04 445 88a60c6c5c46ca5 Gao Xiang 2021-01-04 446 cnt_cur = xfs_allocbt_init_cursor(mp, tp, agfbp, 88a60c6c5c46ca5 Gao Xiang 2021-01-04 447 pag->pag_agno, XFS_BTNUM_CNT); 88a60c6c5c46ca5 Gao Xiang 2021-01-04 448 ASSERT(cnt_cur->bc_nlevels == 1); 88a60c6c5c46ca5 Gao Xiang 2021-01-04 449 783679598b667b3 Gao Xiang 2021-01-05 450 #if 0 88a60c6c5c46ca5 Gao Xiang 2021-01-04 451 error = xfs_alloc_lookup_ge(cnt_cur, 0, be32_to_cpu(agf->agf_longest), &i); 88a60c6c5c46ca5 Gao Xiang 2021-01-04 452 if (error || !i) 88a60c6c5c46ca5 Gao Xiang 2021-01-04 453 goto out; 88a60c6c5c46ca5 Gao Xiang 2021-01-04 454 88a60c6c5c46ca5 Gao Xiang 2021-01-04 455 error = xfs_alloc_get_rec(cnt_cur, &nfbno, &nflen, &i); 88a60c6c5c46ca5 Gao Xiang 2021-01-04 456 if (error) 88a60c6c5c46ca5 Gao Xiang 2021-01-04 457 goto out; 88a60c6c5c46ca5 Gao Xiang 2021-01-04 458 88a60c6c5c46ca5 Gao Xiang 2021-01-04 459 if (XFS_IS_CORRUPT(mp, i != 1)) { 88a60c6c5c46ca5 Gao Xiang 2021-01-04 460 error = -EFSCORRUPTED; 88a60c6c5c46ca5 Gao Xiang 2021-01-04 461 goto out; 88a60c6c5c46ca5 Gao Xiang 2021-01-04 462 } 88a60c6c5c46ca5 Gao Xiang 2021-01-04 463 88a60c6c5c46ca5 Gao Xiang 2021-01-04 464 error = -ENOTEMPTY; 88a60c6c5c46ca5 Gao Xiang 2021-01-04 465 88a60c6c5c46ca5 Gao Xiang 2021-01-04 466 if (nfbno == mp->m_ag_prealloc_blocks && 88a60c6c5c46ca5 Gao Xiang 2021-01-04 467 nflen == pag->pagf_freeblks) 783679598b667b3 Gao Xiang 2021-01-05 468 #endif 88a60c6c5c46ca5 Gao Xiang 2021-01-04 469 error = 0; 88a60c6c5c46ca5 Gao Xiang 2021-01-04 470 88a60c6c5c46ca5 Gao Xiang 2021-01-04 @471 out: 88a60c6c5c46ca5 Gao Xiang 2021-01-04 472 xfs_btree_del_cursor(cnt_cur, XFS_BTREE_NOERROR); 88a60c6c5c46ca5 Gao Xiang 2021-01-04 473 return error; 88a60c6c5c46ca5 Gao Xiang 2021-01-04 474 } 88a60c6c5c46ca5 Gao Xiang 2021-01-04 475 :::::: The code at line 471 was first introduced by commit :::::: 88a60c6c5c46ca5258c13ae24e1466c44695b4a5 xfs: check ag is empty :::::: TO: Gao Xiang <[email protected]> :::::: CC: Gao Xiang <[email protected]> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/[email protected]
.config.gz
Description: application/gzip
_______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
