tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 47762f08697484cf0c2f2904b8c52375ed26c8cb commit: fc3b2b8e7199b371ed55b7d82ecf0a9d0e794274 [8652/10848] fs: simplify invalidate_inodes config: microblaze-randconfig-r032-20230817 compiler: microblaze-linux-gcc (GCC) 12.3.0 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 | Closes: https://lore.kernel.org/oe-kbuild-all/202308181017.xBtEbRCy-lkp@intel.com/ All warnings (new ones prefixed by >>): >> fs/inode.c:760: warning: Excess function parameter 'kill_dirty' description in 'invalidate_inodes' vim +760 fs/inode.c ^1da177e4c3f41 Linus Torvalds 2005-04-16 751 ^1da177e4c3f41 Linus Torvalds 2005-04-16 752 /** a031878670ac8f Christoph Hellwig 2010-10-24 753 * invalidate_inodes - attempt to free all inodes on a superblock a031878670ac8f Christoph Hellwig 2010-10-24 754 * @sb: superblock to operate on 93b270f76e7ef3 NeilBrown 2011-02-24 755 * @kill_dirty: flag to guide handling of dirty inodes ^1da177e4c3f41 Linus Torvalds 2005-04-16 756 * fc3b2b8e7199b3 Christoph Hellwig 2023-08-11 757 * Attempts to free all inodes (including dirty inodes) for a given superblock. ^1da177e4c3f41 Linus Torvalds 2005-04-16 758 */ fc3b2b8e7199b3 Christoph Hellwig 2023-08-11 759 void invalidate_inodes(struct super_block *sb) ^1da177e4c3f41 Linus Torvalds 2005-04-16 @760 { a031878670ac8f Christoph Hellwig 2010-10-24 761 struct inode *inode, *next; a031878670ac8f Christoph Hellwig 2010-10-24 762 LIST_HEAD(dispose); ^1da177e4c3f41 Linus Torvalds 2005-04-16 763 04646aebd30b99 Eric Sandeen 2019-12-06 764 again: 74278da9f70d84 Dave Chinner 2015-03-04 765 spin_lock(&sb->s_inode_list_lock); a031878670ac8f Christoph Hellwig 2010-10-24 766 list_for_each_entry_safe(inode, next, &sb->s_inodes, i_sb_list) { 250df6ed274d76 Dave Chinner 2011-03-22 767 spin_lock(&inode->i_lock); 250df6ed274d76 Dave Chinner 2011-03-22 768 if (inode->i_state & (I_NEW | I_FREEING | I_WILL_FREE)) { 250df6ed274d76 Dave Chinner 2011-03-22 769 spin_unlock(&inode->i_lock); aabb8fdb411287 Nicholas Piggin 2009-03-11 770 continue; 250df6ed274d76 Dave Chinner 2011-03-22 771 } 99a38919241fd0 Christoph Hellwig 2010-10-23 772 if (atomic_read(&inode->i_count)) { 250df6ed274d76 Dave Chinner 2011-03-22 773 spin_unlock(&inode->i_lock); 99a38919241fd0 Christoph Hellwig 2010-10-23 774 continue; 99a38919241fd0 Christoph Hellwig 2010-10-23 775 } 99a38919241fd0 Christoph Hellwig 2010-10-23 776 ^1da177e4c3f41 Linus Torvalds 2005-04-16 777 inode->i_state |= I_FREEING; 02afc410f363f9 Dave Chinner 2011-03-22 778 inode_lru_list_del(inode); 250df6ed274d76 Dave Chinner 2011-03-22 779 spin_unlock(&inode->i_lock); 02afc410f363f9 Dave Chinner 2011-03-22 780 list_add(&inode->i_lru, &dispose); 04646aebd30b99 Eric Sandeen 2019-12-06 781 if (need_resched()) { 04646aebd30b99 Eric Sandeen 2019-12-06 782 spin_unlock(&sb->s_inode_list_lock); 04646aebd30b99 Eric Sandeen 2019-12-06 783 cond_resched(); 04646aebd30b99 Eric Sandeen 2019-12-06 784 dispose_list(&dispose); 04646aebd30b99 Eric Sandeen 2019-12-06 785 goto again; 04646aebd30b99 Eric Sandeen 2019-12-06 786 } ^1da177e4c3f41 Linus Torvalds 2005-04-16 787 } 74278da9f70d84 Dave Chinner 2015-03-04 788 spin_unlock(&sb->s_inode_list_lock); ^1da177e4c3f41 Linus Torvalds 2005-04-16 789 a031878670ac8f Christoph Hellwig 2010-10-24 790 dispose_list(&dispose); ^1da177e4c3f41 Linus Torvalds 2005-04-16 791 } ^1da177e4c3f41 Linus Torvalds 2005-04-16 792 :::::: The code at line 760 was first introduced by commit :::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2 :::::: TO: Linus Torvalds :::::: CC: Linus Torvalds -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki