tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git 
dev-test
head:   3f1a145b84bcf0fae986212590bfeeaf165d22d6
commit: 3f1a145b84bcf0fae986212590bfeeaf165d22d6 [15/15] f2fs: Introduce linear 
search for dentries
config: riscv-randconfig-002-20241220 
(https://download.01.org/0day-ci/archive/20241220/202412202144.aeypgobo-...@intel.com/config)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project 
ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20241220/202412202144.aeypgobo-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <l...@intel.com>
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202412202144.aeypgobo-...@intel.com/

All warnings (new ones prefixed by >>):

   In file included from fs/f2fs/dir.c:10:
   In file included from include/linux/f2fs_fs.h:11:
   In file included from include/linux/pagemap.h:8:
   In file included from include/linux/mm.h:2223:
   include/linux/vmstat.h:504:43: warning: arithmetic between different 
enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') 
[-Wenum-enum-conversion]
     504 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     505 |                            item];
         |                            ~~~~
   include/linux/vmstat.h:511:43: warning: arithmetic between different 
enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') 
[-Wenum-enum-conversion]
     511 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     512 |                            NR_VM_NUMA_EVENT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~~
   include/linux/vmstat.h:518:36: warning: arithmetic between different 
enumeration types ('enum node_stat_item' and 'enum lru_list') 
[-Wenum-enum-conversion]
     518 |         return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
         |                               ~~~~~~~~~~~ ^ ~~~
   include/linux/vmstat.h:524:43: warning: arithmetic between different 
enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') 
[-Wenum-enum-conversion]
     524 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     525 |                            NR_VM_NUMA_EVENT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~~
>> fs/f2fs/dir.c:339:1: warning: unused label 'start_find_entry' 
>> [-Wunused-label]
     339 | start_find_entry:
         | ^~~~~~~~~~~~~~~~~
   5 warnings generated.


vim +/start_find_entry +339 fs/f2fs/dir.c

   326  
   327  struct f2fs_dir_entry *__f2fs_find_entry(struct inode *dir,
   328                                           const struct f2fs_filename 
*fname,
   329                                           struct page **res_page)
   330  {
   331          unsigned long npages = dir_blocks(dir);
   332          struct f2fs_dir_entry *de = NULL;
   333          unsigned int max_depth;
   334          unsigned int level;
   335          bool use_hash = true;
   336  
   337          *res_page = NULL;
   338  
 > 339  start_find_entry:
   340          if (f2fs_has_inline_dentry(dir)) {
   341                  de = f2fs_find_in_inline_dir(dir, fname, res_page, 
use_hash);
   342                  goto out;
   343          }
   344  
   345          if (npages == 0)
   346                  goto out;
   347  
   348          max_depth = F2FS_I(dir)->i_current_depth;
   349          if (unlikely(max_depth > MAX_DIR_HASH_DEPTH)) {
   350                  f2fs_warn(F2FS_I_SB(dir), "Corrupted max_depth of %lu: 
%u",
   351                            dir->i_ino, max_depth);
   352                  max_depth = MAX_DIR_HASH_DEPTH;
   353                  f2fs_i_depth_write(dir, max_depth);
   354          }
   355  
   356          for (level = 0; level < max_depth; level++) {
   357                  de = find_in_level(dir, level, fname, res_page, 
use_hash);
   358                  if (de || IS_ERR(*res_page))
   359                          break;
   360          }
   361  
   362  out:
   363  #if IS_ENABLED(CONFIG_UNICODE)
   364          if (IS_CASEFOLDED(dir) && !de && use_hash) {
   365                  use_hash = false;
   366                  goto start_find_entry;
   367          }
   368  #endif
   369          /* This is to increase the speed of f2fs_create */
   370          if (!de)
   371                  F2FS_I(dir)->task = current;
   372          return de;
   373  }
   374  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


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

Reply via email to