tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git 
dev-test
head:   7f7c4d65019e9c82538b92ec5df2e4f0c6765998
commit: 7f7c4d65019e9c82538b92ec5df2e4f0c6765998 [2/2] f2fs: optimize error 
handling in redirty_blocks
config: i386-randconfig-a002 
(https://download.01.org/0day-ci/archive/20220607/202206071533.vc9l1css-...@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 
b92436efcb7813fc481b30f2593a4907568d917a)
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/jaegeuk/f2fs.git/commit/?id=7f7c4d65019e9c82538b92ec5df2e4f0c6765998
        git remote add jaegeuk-f2fs 
https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git
        git fetch --no-tags jaegeuk-f2fs dev-test
        git checkout 7f7c4d65019e9c82538b92ec5df2e4f0c6765998
        # 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/f2fs/

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

All errors (new ones prefixed by >>):

>> fs/f2fs/file.c:3908:15: error: use of undeclared identifier 'sbi'
                   f2fs_bug_on(sbi, !page);
                               ^
   1 error generated.


vim +/sbi +3908 fs/f2fs/file.c

  3884  
  3885  static int redirty_blocks(struct inode *inode, pgoff_t page_idx, int 
len)
  3886  {
  3887          DEFINE_READAHEAD(ractl, NULL, NULL, inode->i_mapping, page_idx);
  3888          struct address_space *mapping = inode->i_mapping;
  3889          struct page *page;
  3890          pgoff_t redirty_idx = page_idx;
  3891          int i, page_len = 0, ret = 0;
  3892  
  3893          page_cache_ra_unbounded(&ractl, len, 0);
  3894  
  3895          for (i = 0; i < len; i++, page_idx++) {
  3896                  page = read_cache_page(mapping, page_idx, NULL, NULL);
  3897                  if (IS_ERR(page)) {
  3898                          ret = PTR_ERR(page);
  3899                          break;
  3900                  }
  3901                  page_len++;
  3902          }
  3903  
  3904          for (i = 0; i < page_len; i++, redirty_idx++) {
  3905                  page = find_lock_page(mapping, redirty_idx);
  3906  
  3907                  /* It will never fail, when page has pinned above */
> 3908                  f2fs_bug_on(sbi, !page);
  3909  
  3910                  set_page_dirty(page);
  3911                  f2fs_put_page(page, 1);
  3912                  f2fs_put_page(page, 0);
  3913          }
  3914  
  3915          return ret;
  3916  }
  3917  

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


_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

Reply via email to