tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git 
dev-test
head:   bc8610a18daa4a611d189374031fe1fa3c603423
commit: 9f506c758707749076b4ec2402007670c6f35558 [65/93] f2fs: Use a folio in 
f2fs_is_cp_guaranteed()
config: i386-buildonly-randconfig-001-20250710 
(https://download.01.org/0day-ci/archive/20250710/202507101514.gtdqnbbm-...@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14+deb12u1) 12.2.0
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20250710/202507101514.gtdqnbbm-...@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/202507101514.gtdqnbbm-...@intel.com/

All warnings (new ones prefixed by >>):

   fs/f2fs/data.c: In function 'f2fs_is_cp_guaranteed':
>> fs/f2fs/data.c:58:70: warning: passing argument 1 of 
>> 'fscrypt_pagecache_folio' discards 'const' qualifier from pointer target 
>> type [-Wdiscarded-qualifiers]
      58 |                 return 
folio_test_f2fs_gcing(fscrypt_pagecache_folio(folio));
         |                                                                      
^~~~~
   In file included from fs/f2fs/f2fs.h:28,
                    from fs/f2fs/data.c:24:
   include/linux/fscrypt.h:527:67: note: expected 'struct folio *' but argument 
is of type 'const struct folio *'
     527 | static inline struct folio *fscrypt_pagecache_folio(struct folio 
*bounce_folio)
         |                                                     
~~~~~~~~~~~~~~^~~~~~~~~~~~


vim +58 fs/f2fs/data.c

    49  
    50  bool f2fs_is_cp_guaranteed(const struct page *page)
    51  {
    52          const struct folio *folio = page_folio(page);
    53          struct address_space *mapping = folio->mapping;
    54          struct inode *inode;
    55          struct f2fs_sb_info *sbi;
    56  
    57          if (fscrypt_is_bounce_folio(folio))
  > 58                  return 
folio_test_f2fs_gcing(fscrypt_pagecache_folio(folio));
    59  
    60          inode = mapping->host;
    61          sbi = F2FS_I_SB(inode);
    62  
    63          if (inode->i_ino == F2FS_META_INO(sbi) ||
    64                          inode->i_ino == F2FS_NODE_INO(sbi) ||
    65                          S_ISDIR(inode->i_mode))
    66                  return true;
    67  
    68          if ((S_ISREG(inode->i_mode) && IS_NOQUOTA(inode)) ||
    69                          folio_test_f2fs_gcing(folio))
    70                  return true;
    71          return false;
    72  }
    73  

-- 
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