tree:
https://git.kernel.org/pub/scm/linux/kernel/git/xiang/linux.git xfs/shrink_ags
head: 8e4c0f86c42774434d1935594d324be8dd834d02
commit: a796c2abb6f7baaf26e82e907d71cfdc30febcce [2/4] xfs: check ag is empty
config: i386-randconfig-r035-20210414 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
#
https://git.kernel.org/pub/scm/linux/kernel/git/xiang/linux.git/commit/?i...
git remote add xiang-linux
https://git.kernel.org/pub/scm/linux/kernel/git/xiang/linux.git
git fetch --no-tags xiang-linux xfs/shrink_ags
git checkout a796c2abb6f7baaf26e82e907d71cfdc30febcce
# save the attached .config to linux build tree
make W=1 W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
> fs/xfs/libxfs/xfs_alloc.c:2478:1: warning: no previous prototype
for 'xfs_ag_emptify_agfl' [-Wmissing-prototypes]
2478 |
xfs_ag_emptify_agfl(
| ^~~~~~~~~~~~~~~~~~~
vim +/xfs_ag_emptify_agfl +2478 fs/xfs/libxfs/xfs_alloc.c
2476
2477 int
2478 xfs_ag_emptify_agfl(
2479 struct xfs_buf *agfbp)
2480 {
2481 struct xfs_mount *mp = agfbp->b_mount;
2482 struct xfs_perag *pag = agfbp->b_pag;
2483 struct xfs_trans *tp;
2484 int error;
2485 struct xfs_owner_info oinfo = XFS_RMAP_OINFO_AG;
2486
2487 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_growdata, 0, 0,
2488 XFS_TRANS_RESERVE, &tp);
2489 if (error)
2490 return error;
2491
2492 /* attach to the transaction and keep it from unlocked */
2493 xfs_trans_bjoin(tp, agfbp);
2494 xfs_trans_bhold(tp, agfbp);
2495
2496 while (pag->pagf_flcount) {
2497 xfs_agblock_t bno;
2498 int error;
2499
2500 error = xfs_alloc_get_freelist(tp, agfbp, &bno, 0);
2501 if (error)
2502 break;
2503
2504 ASSERT(bno != NULLAGBLOCK);
2505 xfs_defer_agfl_block(tp, pag->pag_agno, bno, &oinfo);
2506 }
2507 xfs_trans_set_sync(tp);
2508 xfs_trans_commit(tp);
2509 return error;
2510 }
2511
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org