[xiang-erofs:dev-test 5/5] fs/erofs/zdata.c:1527:29: error: 'struct erofs_sb_info' has no member named 'ctx'

kernel test robot lkp at intel.com
Sun Oct 10 22:34:45 AEDT 2021


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git dev-test
head:   8aa390ac7b8e2b959258243bcd241ac7623b5840
commit: 8aa390ac7b8e2b959258243bcd241ac7623b5840 [5/5] erofs: introduce readmore decompression strategy
config: arm-buildonly-randconfig-r006-20211010 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.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
        # https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git/commit/?id=8aa390ac7b8e2b959258243bcd241ac7623b5840
        git remote add xiang-erofs https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
        git fetch --no-tags xiang-erofs dev-test
        git checkout 8aa390ac7b8e2b959258243bcd241ac7623b5840
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash fs/erofs/

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

All errors (new ones prefixed by >>):

   fs/erofs/zdata.c: In function 'z_erofs_readahead':
>> fs/erofs/zdata.c:1527:29: error: 'struct erofs_sb_info' has no member named 'ctx'
    1527 |                          sbi->ctx.readahead_sync_decompress &&
         |                             ^~
   fs/erofs/zdata.c:1528:41: error: 'struct erofs_sb_info' has no member named 'ctx'
    1528 |                          nr_pages <= sbi->ctx.max_sync_decompress_pages);
         |                                         ^~


vim +1527 fs/erofs/zdata.c

  1486	
  1487	static void z_erofs_readahead(struct readahead_control *rac)
  1488	{
  1489		struct inode *const inode = rac->mapping->host;
  1490		struct erofs_sb_info *const sbi = EROFS_I_SB(inode);
  1491		struct z_erofs_decompress_frontend f = DECOMPRESS_FRONTEND_INIT(inode);
  1492		struct page *page, *head = NULL;
  1493		unsigned int nr_pages;
  1494		LIST_HEAD(pagepool);
  1495	
  1496		f.readahead = true;
  1497		f.headoffset = readahead_pos(rac);
  1498	
  1499		z_erofs_pcluster_readmore(&f, rac, f.headoffset +
  1500					  readahead_length(rac) - 1, &pagepool, true);
  1501		nr_pages = readahead_count(rac);
  1502		trace_erofs_readpages(inode, readahead_index(rac), nr_pages, false);
  1503	
  1504		while ((page = readahead_page(rac))) {
  1505			set_page_private(page, (unsigned long)head);
  1506			head = page;
  1507		}
  1508	
  1509		while (head) {
  1510			struct page *page = head;
  1511			int err;
  1512	
  1513			/* traversal in reverse order */
  1514			head = (void *)page_private(page);
  1515	
  1516			err = z_erofs_do_read_page(&f, page, &pagepool);
  1517			if (err)
  1518				erofs_err(inode->i_sb,
  1519					  "readahead error at page %lu @ nid %llu",
  1520					  page->index, EROFS_I(inode)->nid);
  1521			put_page(page);
  1522		}
  1523		z_erofs_pcluster_readmore(&f, rac, 0, &pagepool, false);
  1524		(void)z_erofs_collector_end(&f.clt);
  1525	
  1526		z_erofs_runqueue(inode->i_sb, &f, &pagepool,
> 1527				 sbi->ctx.readahead_sync_decompress &&
  1528				 nr_pages <= sbi->ctx.max_sync_decompress_pages);
  1529		if (f.map.mpage)
  1530			put_page(f.map.mpage);
  1531	
  1532		/* clean up the remaining free pages */
  1533		put_pages_list(&pagepool);
  1534	}
  1535	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 44146 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linux-erofs/attachments/20211010/70d47d1a/attachment.gz>


More information about the Linux-erofs mailing list