All of lore.kernel.org
 help / color / mirror / Atom feed
* [xiang-linux:xfs/misc 3/3] fs/xfs/xfs_inode.c:2039:9: error: no member named 'pag_iunlink_count' in 'struct xfs_perag'
@ 2020-08-12 15:02 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-08-12 15:02 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3187 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/xiang/linux.git xfs/misc
head:   49119f2a167b10b3e780a8fc814d69b3693c6b5b
commit: 49119f2a167b10b3e780a8fc814d69b3693c6b5b [3/3] xfs: insert unlinked inodes from tail
config: x86_64-randconfig-r034-20200812 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 30c1633386e7cfb01c0a54b31ccf4c3a3873e71b)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        git checkout 49119f2a167b10b3e780a8fc814d69b3693c6b5b
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> fs/xfs/xfs_inode.c:2039:9: error: no member named 'pag_iunlink_count' in 'struct xfs_perag'
           ++pag->pag_iunlink_count;
             ~~~  ^
   1 error generated.

vim +2039 fs/xfs/xfs_inode.c

  1988	
  1989	/*
  1990	 * Lock the perag and take AGI lock if agi_unlinked is touched as well
  1991	 * for xfs_iunlink_insert_inode(). As for the details of locking order,
  1992	 * refer to the comments of xfs_iunlink_remove_lock().
  1993	 */
  1994	static struct xfs_perag *
  1995	xfs_iunlink_insert_lock(
  1996		xfs_agino_t		agno,
  1997		struct xfs_trans        *tp,
  1998		struct xfs_inode	*ip,
  1999		struct xfs_buf		**agibpp,
  2000		bool			force_agi)
  2001	{
  2002		struct xfs_mount        *mp = tp->t_mountp;
  2003		struct xfs_perag	*pag;
  2004		int			error;
  2005	
  2006		pag = xfs_perag_get(mp, agno);
  2007		/* paired with smp_store_release() in xfs_iunlink_unlock() */
  2008		if (smp_load_acquire(&pag->pag_iunlink_trans) == tp) {
  2009			/*
  2010			 * if pag_iunlink_trans is the current trans, we're
  2011			 * in the current process context, so it's safe here.
  2012			 */
  2013			ASSERT(mutex_is_locked(&pag->pag_iunlink_mutex));
  2014			goto out;
  2015		}
  2016	
  2017		if (!force_agi) {
  2018			mutex_lock(&pag->pag_iunlink_mutex);
  2019			if (pag->pag_unlinked_tail)
  2020				goto out;
  2021	
  2022			mutex_unlock(&pag->pag_iunlink_mutex);
  2023		}
  2024	
  2025		/*
  2026		 * some paths (e.g. xfs_create_tmpfile) could take AGI lock
  2027		 * in this transaction in advance and the only locking order
  2028		 * AGI buf lock -> pag_iunlink_mutex is safe.
  2029		 */
  2030		error = xfs_read_agi(mp, tp, agno, agibpp);
  2031		if (error) {
  2032			xfs_perag_put(pag);
  2033			return ERR_PTR(error);
  2034		}
  2035	
  2036		mutex_lock(&pag->pag_iunlink_mutex);
  2037	out:
  2038		WRITE_ONCE(pag->pag_iunlink_trans, tp);
> 2039		++pag->pag_iunlink_count;
  2040		return pag;
  2041	}
  2042	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 37188 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-12 15:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-12 15:02 [xiang-linux:xfs/misc 3/3] fs/xfs/xfs_inode.c:2039:9: error: no member named 'pag_iunlink_count' in 'struct xfs_perag' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.