* [xiang-linux:xfs/misc 3/3] fs/xfs/xfs_inode.c:2039:9: error: 'struct xfs_perag' has no member named 'pag_iunlink_count'; did you mean
@ 2020-08-12 14:23 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-08-12 14:23 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3145 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: openrisc-randconfig-r033-20200812 (attached as .config)
compiler: or1k-linux-gcc (GCC) 9.3.0
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
git checkout 49119f2a167b10b3e780a8fc814d69b3693c6b5b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=openrisc
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: In function 'xfs_iunlink_insert_lock':
>> fs/xfs/xfs_inode.c:2039:9: error: 'struct xfs_perag' has no member named 'pag_iunlink_count'; did you mean 'pag_iunlink_lockcount'?
2039 | ++pag->pag_iunlink_count;
| ^~~~~~~~~~~~~~~~~
| pag_iunlink_lockcount
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: 29609 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-08-12 14:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-12 14:23 [xiang-linux:xfs/misc 3/3] fs/xfs/xfs_inode.c:2039:9: error: 'struct xfs_perag' has no member named 'pag_iunlink_count'; did you mean 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.