From: kernel test robot <lkp@intel.com>
To: NeilBrown <neilb@suse.de>, Chris Mason <chris.mason@fusionio.com>,
David Sterba <dsterba@suse.com>,
Christoph Hellwig <hch@infradead.org>,
Josef Bacik <josef@toxicpanda.com>,
"J. Bruce Fields" <bfields@fieldses.org>,
Chuck Lever <chuck.lever@oracle.com>
Cc: clang-built-linux@googlegroups.com, kbuild-all@lists.01.org,
Roman Mamedov <rm@romanrm.net>,
Goffredo Baroncelli <kreijack@libero.it>,
Alexander Viro <viro@zeniv.linux.org.uk>,
linux-fsdevel@vger.kernel.org
Subject: Re: [PATCH v2] BTRFS/NFSD: provide more unique inode number for btrfs export
Date: Mon, 23 Aug 2021 16:17:02 +0800 [thread overview]
Message-ID: <202108231648.vH2Ep8cE-lkp@intel.com> (raw)
In-Reply-To: <162969155423.9892.18322100025025288277@noble.neil.brown.name>
[-- Attachment #1: Type: text/plain, Size: 5472 bytes --]
Hi NeilBrown,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on nfs/linux-next]
[also build test ERROR on hch-configfs/for-next linus/master v5.14-rc7 next-20210820]
[cannot apply to kdave/for-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/NeilBrown/BTRFS-NFSD-provide-more-unique-inode-number-for-btrfs-export/20210823-120718
base: git://git.linux-nfs.org/projects/trondmy/linux-nfs.git linux-next
config: hexagon-randconfig-r045-20210822 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 79b55e5038324e61a3abf4e6a9a949c473edd858)
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
# https://github.com/0day-ci/linux/commit/e99ff00e4055532e35c592b50809761d82f87595
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review NeilBrown/BTRFS-NFSD-provide-more-unique-inode-number-for-btrfs-export/20210823-120718
git checkout e99ff00e4055532e35c592b50809761d82f87595
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=hexagon SHELL=/bin/bash
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/nfsd/nfsfh.c:593:44: error: use of undeclared identifier 'BTRFS_SUPER_MAGIC'
if (exp->ex_path.mnt->mnt_sb->s_magic == BTRFS_SUPER_MAGIC)
^
>> fs/nfsd/nfsfh.c:593:44: error: use of undeclared identifier 'BTRFS_SUPER_MAGIC'
>> fs/nfsd/nfsfh.c:593:44: error: use of undeclared identifier 'BTRFS_SUPER_MAGIC'
3 errors generated.
vim +/BTRFS_SUPER_MAGIC +593 fs/nfsd/nfsfh.c
557
558 __be32
559 fh_compose(struct svc_fh *fhp, struct svc_export *exp, struct dentry *dentry,
560 struct svc_fh *ref_fh)
561 {
562 /* ref_fh is a reference file handle.
563 * if it is non-null and for the same filesystem, then we should compose
564 * a filehandle which is of the same version, where possible.
565 * Currently, that means that if ref_fh->fh_handle.fh_version == 0xca
566 * Then create a 32byte filehandle using nfs_fhbase_old
567 *
568 */
569
570 struct inode * inode = d_inode(dentry);
571 dev_t ex_dev = exp_sb(exp)->s_dev;
572 u8 options = 0;
573
574 dprintk("nfsd: fh_compose(exp %02x:%02x/%ld %pd2, ino=%ld)\n",
575 MAJOR(ex_dev), MINOR(ex_dev),
576 (long) d_inode(exp->ex_path.dentry)->i_ino,
577 dentry,
578 (inode ? inode->i_ino : 0));
579
580 /* Choose filehandle version and fsid type based on
581 * the reference filehandle (if it is in the same export)
582 * or the export options.
583 */
584 set_version_and_fsid_type(fhp, exp, ref_fh);
585
586 /* If we have a ref_fh, then copy the fh_no_wcc setting from it. */
587 fhp->fh_no_wcc = ref_fh ? ref_fh->fh_no_wcc : false;
588
589 if (ref_fh && ref_fh->fh_export == exp) {
590 options = ref_fh->fh_handle.fh_options;
591 } else {
592 /* Set options as needed */
> 593 if (exp->ex_path.mnt->mnt_sb->s_magic == BTRFS_SUPER_MAGIC)
594 options |= NFSD_FH_OPTION_INO_UNIQUIFY;
595 }
596
597 if (ref_fh == fhp)
598 fh_put(ref_fh);
599
600 if (fhp->fh_locked || fhp->fh_dentry) {
601 printk(KERN_ERR "fh_compose: fh %pd2 not initialized!\n",
602 dentry);
603 }
604 if (fhp->fh_maxsize < NFS_FHSIZE)
605 printk(KERN_ERR "fh_compose: called with maxsize %d! %pd2\n",
606 fhp->fh_maxsize,
607 dentry);
608
609 fhp->fh_dentry = dget(dentry); /* our internal copy */
610 fhp->fh_export = exp_get(exp);
611
612 if (fhp->fh_handle.fh_version == 0xca) {
613 /* old style filehandle please */
614 memset(&fhp->fh_handle.fh_base, 0, NFS_FHSIZE);
615 fhp->fh_handle.fh_size = NFS_FHSIZE;
616 fhp->fh_handle.ofh_dcookie = 0xfeebbaca;
617 fhp->fh_handle.ofh_dev = old_encode_dev(ex_dev);
618 fhp->fh_handle.ofh_xdev = fhp->fh_handle.ofh_dev;
619 fhp->fh_handle.ofh_xino =
620 ino_t_to_u32(d_inode(exp->ex_path.dentry)->i_ino);
621 fhp->fh_handle.ofh_dirino = ino_t_to_u32(parent_ino(dentry));
622 if (inode)
623 _fh_update_old(dentry, exp, &fhp->fh_handle);
624 } else {
625 fhp->fh_handle.fh_size =
626 key_len(fhp->fh_handle.fh_fsid_type) + 4;
627 fhp->fh_handle.fh_options = options;
628
629 mk_fsid(fhp->fh_handle.fh_fsid_type,
630 fhp->fh_handle.fh_fsid,
631 ex_dev,
632 d_inode(exp->ex_path.dentry)->i_ino,
633 exp->ex_fsid, exp->ex_uuid);
634
635 if (inode)
636 _fh_update(fhp, exp, dentry);
637 if (fhp->fh_handle.fh_fileid_type == FILEID_INVALID) {
638 fh_put(fhp);
639 return nfserr_opnotsupp;
640 }
641 }
642
643 return 0;
644 }
645
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 29470 bytes --]
next prev parent reply other threads:[~2021-08-23 8:17 UTC|newest]
Thread overview: 140+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-27 22:37 [PATCH/RFC 00/11] expose btrfs subvols in mount table correctly NeilBrown
2021-07-27 22:37 ` [PATCH 11/11] btrfs: use automount to bind-mount all subvol roots NeilBrown
2021-07-28 8:37 ` kernel test robot
2021-07-28 8:37 ` [RFC PATCH] btrfs: btrfs_mountpoint_expiry_timeout can be static kernel test robot
2021-07-28 13:12 ` [PATCH 11/11] btrfs: use automount to bind-mount all subvol roots Christian Brauner
2021-07-29 0:43 ` NeilBrown
2021-07-29 14:38 ` Christian Brauner
2021-07-31 6:25 ` [btrfs] 5874902268: xfstests.btrfs.202.fail kernel test robot
2021-07-27 22:37 ` [PATCH 07/11] exportfs: Allow filehandle lookup to cross internal mount points NeilBrown
2021-07-28 10:13 ` Amir Goldstein
2021-07-29 0:28 ` NeilBrown
2021-07-29 5:27 ` Amir Goldstein
2021-08-06 7:52 ` Miklos Szeredi
2021-08-06 8:08 ` Amir Goldstein
2021-08-06 8:18 ` Miklos Szeredi
2021-07-28 19:17 ` J. Bruce Fields
2021-07-28 22:25 ` NeilBrown
2021-07-27 22:37 ` [PATCH 02/11] VFS: allow d_automount to create in-place bind-mount NeilBrown
2021-07-27 22:37 ` [PATCH 05/11] VFS: new function: mount_is_internal() NeilBrown
2021-07-28 2:16 ` Al Viro
2021-07-28 3:32 ` NeilBrown
2021-07-30 0:34 ` Al Viro
2021-07-27 22:37 ` [PATCH 06/11] nfsd: include a vfsmount in struct svc_fh NeilBrown
2021-07-27 22:37 ` [PATCH 10/11] btrfs: introduce mapping function from location to inum NeilBrown
2021-07-27 22:37 ` [PATCH 08/11] nfsd: change get_parent_attributes() to nfsd_get_mounted_on() NeilBrown
2021-07-27 22:37 ` [PATCH 01/11] VFS: show correct dev num in mountinfo NeilBrown
2021-07-30 0:25 ` Al Viro
2021-07-30 5:28 ` NeilBrown
2021-07-30 5:54 ` Miklos Szeredi
2021-07-30 6:13 ` NeilBrown
2021-07-30 7:18 ` Miklos Szeredi
2021-07-30 7:33 ` NeilBrown
2021-07-30 7:59 ` Miklos Szeredi
2021-08-02 4:18 ` A Third perspective on BTRFS nfsd subvol dev/inode number issues NeilBrown
2021-08-02 5:25 ` Al Viro
2021-08-02 5:40 ` NeilBrown
2021-08-02 7:54 ` Amir Goldstein
2021-08-02 13:53 ` Josef Bacik
2021-08-03 22:29 ` Qu Wenruo
2021-08-02 14:47 ` Frank Filz
2021-08-02 21:24 ` NeilBrown
2021-08-02 7:15 ` Martin Steigerwald
2021-08-02 21:40 ` NeilBrown
2021-08-02 12:39 ` J. Bruce Fields
2021-08-02 20:32 ` Patrick Goetz
2021-08-02 20:41 ` J. Bruce Fields
2021-08-02 21:10 ` NeilBrown
2021-08-02 21:50 ` J. Bruce Fields
2021-08-02 21:59 ` NeilBrown
2021-08-02 22:14 ` J. Bruce Fields
2021-08-02 22:36 ` NeilBrown
2021-08-03 0:15 ` J. Bruce Fields
2021-07-27 22:37 ` [PATCH 03/11] VFS: pass lookup_flags into follow_down() NeilBrown
2021-07-27 22:37 ` [PATCH 09/11] nfsd: Allow filehandle lookup to cross internal mount points NeilBrown
2021-07-28 19:15 ` J. Bruce Fields
2021-07-28 22:29 ` NeilBrown
2021-07-30 0:42 ` Al Viro
2021-07-30 5:43 ` NeilBrown
2021-07-27 22:37 ` [PATCH 04/11] VFS: export lookup_mnt() NeilBrown
2021-07-30 0:31 ` Al Viro
2021-07-30 5:33 ` NeilBrown
2021-07-28 2:19 ` [PATCH/RFC 00/11] expose btrfs subvols in mount table correctly Al Viro
2021-07-28 4:58 ` Wang Yugui
2021-07-28 6:04 ` Wang Yugui
2021-07-28 7:01 ` NeilBrown
2021-07-28 12:26 ` Neal Gompa
2021-07-28 19:14 ` J. Bruce Fields
2021-07-29 1:29 ` Zygo Blaxell
2021-07-29 1:43 ` NeilBrown
2021-07-29 23:20 ` Zygo Blaxell
2021-07-28 22:50 ` NeilBrown
2021-07-29 2:37 ` Zygo Blaxell
2021-07-29 3:36 ` NeilBrown
2021-07-29 23:20 ` Zygo Blaxell
2021-07-30 2:36 ` NeilBrown
2021-07-30 5:25 ` Qu Wenruo
2021-07-30 5:31 ` Qu Wenruo
2021-07-30 5:53 ` Amir Goldstein
2021-07-30 6:00 ` NeilBrown
2021-07-30 6:09 ` Qu Wenruo
2021-07-30 5:58 ` NeilBrown
2021-07-30 6:23 ` Qu Wenruo
2021-07-30 6:53 ` NeilBrown
2021-07-30 7:09 ` Qu Wenruo
2021-07-30 18:15 ` Zygo Blaxell
2021-07-30 15:17 ` J. Bruce Fields
2021-07-30 15:48 ` Josef Bacik
2021-07-30 16:25 ` Forza
2021-07-30 17:43 ` Zygo Blaxell
2021-07-30 5:28 ` Amir Goldstein
2021-07-28 13:43 ` g.btrfs
2021-07-29 1:39 ` NeilBrown
2021-07-29 9:28 ` Graham Cobb
2021-07-28 7:06 ` NeilBrown
2021-07-28 9:36 ` Wang Yugui
2021-07-28 19:35 ` J. Bruce Fields
2021-07-28 21:30 ` Josef Bacik
2021-07-30 0:13 ` Al Viro
2021-07-30 6:08 ` NeilBrown
2021-08-13 1:45 ` [PATCH] VFS/BTRFS/NFSD: provide more unique inode number for btrfs export NeilBrown
2021-08-13 14:55 ` Josef Bacik
2021-08-15 7:39 ` Goffredo Baroncelli
2021-08-15 19:35 ` Roman Mamedov
2021-08-15 21:03 ` Goffredo Baroncelli
2021-08-15 21:53 ` NeilBrown
2021-08-17 19:34 ` Goffredo Baroncelli
2021-08-17 21:39 ` NeilBrown
2021-08-18 17:24 ` Goffredo Baroncelli
2021-08-15 22:17 ` NeilBrown
2021-08-19 8:01 ` Amir Goldstein
2021-08-20 3:21 ` NeilBrown
2021-08-20 6:23 ` Amir Goldstein
2021-08-23 4:05 ` [PATCH v2] BTRFS/NFSD: " NeilBrown
2021-08-23 8:17 ` kernel test robot [this message]
2021-08-18 14:54 ` [PATCH] VFS/BTRFS/NFSD: " Wang Yugui
2021-08-18 21:46 ` NeilBrown
2021-08-19 2:19 ` Zygo Blaxell
2021-08-20 2:54 ` NeilBrown
2021-08-22 19:29 ` Zygo Blaxell
2021-08-23 5:51 ` NeilBrown
2021-08-23 23:22 ` NeilBrown
2021-08-25 2:06 ` Zygo Blaxell
2021-08-23 0:57 ` Wang Yugui
[not found] <162995209561.7591.4202079352301963089@noble.neil.brown.name>
[not found] ` <162995778427.7591.11743795294299207756@noble.neil.brown.name>
[not found] ` <YSkQ31UTVDtBavOO@infradead.org>
[not found] ` <163010550851.7591.9342822614202739406@noble.neil.brown.name>
[not found] ` <YSnhHl0HDOgg07U5@infradead.org>
[not found] ` <163038594541.7591.11109978693705593957@noble.neil.brown.name>
2021-09-01 7:20 ` [PATCH v2] BTRFS/NFSD: " Christoph Hellwig
2021-09-01 15:22 ` J. Bruce Fields
2021-09-02 4:14 ` NeilBrown
2021-09-05 16:07 ` J. Bruce Fields
2021-09-06 1:29 ` NeilBrown
2021-09-11 14:12 ` Amir Goldstein
2021-09-13 0:43 ` NeilBrown
2021-09-13 10:04 ` Amir Goldstein
2021-09-13 22:59 ` NeilBrown
2021-09-14 5:45 ` Amir Goldstein
2021-09-20 22:09 ` NeilBrown
2021-09-02 7:11 ` Christoph Hellwig
2021-09-02 4:06 ` NeilBrown
2021-09-02 7:16 ` Christoph Hellwig
2021-09-02 7:53 ` Miklos Szeredi
2021-09-02 14:16 ` Frank Filz
2021-09-02 23:02 ` NeilBrown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202108231648.vH2Ep8cE-lkp@intel.com \
--to=lkp@intel.com \
--cc=bfields@fieldses.org \
--cc=chris.mason@fusionio.com \
--cc=chuck.lever@oracle.com \
--cc=clang-built-linux@googlegroups.com \
--cc=dsterba@suse.com \
--cc=hch@infradead.org \
--cc=josef@toxicpanda.com \
--cc=kbuild-all@lists.01.org \
--cc=kreijack@libero.it \
--cc=linux-fsdevel@vger.kernel.org \
--cc=neilb@suse.de \
--cc=rm@romanrm.net \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).