public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* Re: [RFC PATCH 2/2] erofs: add on-disk compressed fragments support
       [not found] <b087322de2adfd8ce39a5d380191562b0b0e0086.1661146058.git.huyue2@coolpad.com>
@ 2022-08-22 11:42 ` kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-08-22 11:42 UTC (permalink / raw)
  To: Yue Hu; +Cc: llvm, kbuild-all

Hi Yue,

[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on xiang-erofs/dev-test]
[also build test ERROR on linus/master v6.0-rc2 next-20220822]
[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#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Yue-Hu/erofs-support-compressed-fragments-data/20220822-135454
base:   https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git dev-test
config: i386-randconfig-a003-20220822 (https://download.01.org/0day-ci/archive/20220822/202208221956.uRQu5Di8-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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/intel-lab-lkp/linux/commit/fcee3af7935e7bb4544090297b4260c00fe2f9c8
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Yue-Hu/erofs-support-compressed-fragments-data/20220822-135454
        git checkout fcee3af7935e7bb4544090297b4260c00fe2f9c8
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash fs/

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

All errors (new ones prefixed by >>):

>> fs/erofs/super.c:384:7: error: no member named 'packed_inode' in 'struct erofs_sb_info'
           sbi->packed_inode = erofs_sb_has_fragments(sbi) ?
           ~~~  ^
   1 error generated.


vim +384 fs/erofs/super.c

   327	
   328	static int erofs_read_superblock(struct super_block *sb)
   329	{
   330		struct erofs_sb_info *sbi;
   331		struct erofs_buf buf = __EROFS_BUF_INITIALIZER;
   332		struct erofs_super_block *dsb;
   333		unsigned int blkszbits;
   334		void *data;
   335		int ret;
   336	
   337		data = erofs_read_metabuf(&buf, sb, 0, EROFS_KMAP);
   338		if (IS_ERR(data)) {
   339			erofs_err(sb, "cannot read erofs superblock");
   340			return PTR_ERR(data);
   341		}
   342	
   343		sbi = EROFS_SB(sb);
   344		dsb = (struct erofs_super_block *)(data + EROFS_SUPER_OFFSET);
   345	
   346		ret = -EINVAL;
   347		if (le32_to_cpu(dsb->magic) != EROFS_SUPER_MAGIC_V1) {
   348			erofs_err(sb, "cannot find valid erofs superblock");
   349			goto out;
   350		}
   351	
   352		sbi->feature_compat = le32_to_cpu(dsb->feature_compat);
   353		if (erofs_sb_has_sb_chksum(sbi)) {
   354			ret = erofs_superblock_csum_verify(sb, data);
   355			if (ret)
   356				goto out;
   357		}
   358	
   359		ret = -EINVAL;
   360		blkszbits = dsb->blkszbits;
   361		/* 9(512 bytes) + LOG_SECTORS_PER_BLOCK == LOG_BLOCK_SIZE */
   362		if (blkszbits != LOG_BLOCK_SIZE) {
   363			erofs_err(sb, "blkszbits %u isn't supported on this platform",
   364				  blkszbits);
   365			goto out;
   366		}
   367	
   368		if (!check_layout_compatibility(sb, dsb))
   369			goto out;
   370	
   371		sbi->sb_size = 128 + dsb->sb_extslots * EROFS_SB_EXTSLOT_SIZE;
   372		if (sbi->sb_size > EROFS_BLKSIZ) {
   373			erofs_err(sb, "invalid sb_extslots %u (more than a fs block)",
   374				  sbi->sb_size);
   375			goto out;
   376		}
   377		sbi->primarydevice_blocks = le32_to_cpu(dsb->blocks);
   378		sbi->meta_blkaddr = le32_to_cpu(dsb->meta_blkaddr);
   379	#ifdef CONFIG_EROFS_FS_XATTR
   380		sbi->xattr_blkaddr = le32_to_cpu(dsb->xattr_blkaddr);
   381	#endif
   382		sbi->islotbits = ilog2(sizeof(struct erofs_inode_compact));
   383		sbi->root_nid = le16_to_cpu(dsb->root_nid);
 > 384		sbi->packed_inode = erofs_sb_has_fragments(sbi) ?
   385			erofs_iget(sb, le64_to_cpu(dsb->packed_nid), false) : NULL;
   386		sbi->inos = le64_to_cpu(dsb->inos);
   387	
   388		sbi->build_time = le64_to_cpu(dsb->build_time);
   389		sbi->build_time_nsec = le32_to_cpu(dsb->build_time_nsec);
   390	
   391		memcpy(&sb->s_uuid, dsb->uuid, sizeof(dsb->uuid));
   392	
   393		ret = strscpy(sbi->volume_name, dsb->volume_name,
   394			      sizeof(dsb->volume_name));
   395		if (ret < 0) {	/* -E2BIG */
   396			erofs_err(sb, "bad volume name without NIL terminator");
   397			ret = -EFSCORRUPTED;
   398			goto out;
   399		}
   400	
   401		/* parse on-disk compression configurations */
   402		if (erofs_sb_has_compr_cfgs(sbi))
   403			ret = erofs_load_compr_cfgs(sb, dsb);
   404		else
   405			ret = z_erofs_load_lz4_config(sb, dsb, NULL, 0);
   406		if (ret < 0)
   407			goto out;
   408	
   409		/* handle multiple devices */
   410		ret = erofs_scan_devices(sb, dsb);
   411	
   412		if (erofs_sb_has_ztailpacking(sbi))
   413			erofs_info(sb, "EXPERIMENTAL compressed inline data feature in use. Use at your own risk!");
   414		if (erofs_is_fscache_mode(sb))
   415			erofs_info(sb, "EXPERIMENTAL fscache-based on-demand read feature in use. Use at your own risk!");
   416		if (erofs_sb_has_fragments(sbi))
   417			erofs_info(sb, "EXPERIMENTAL compressed fragments feature in use. Use at your own risk!");
   418	out:
   419		erofs_put_metabuf(&buf);
   420		return ret;
   421	}
   422	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

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

only message in thread, other threads:[~2022-08-22 11:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <b087322de2adfd8ce39a5d380191562b0b0e0086.1661146058.git.huyue2@coolpad.com>
2022-08-22 11:42 ` [RFC PATCH 2/2] erofs: add on-disk compressed fragments support kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox