Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

bdev: Drop pointless invalidate_inode_buffers() call

Nobody is calling mark_buffer_dirty_inode() with internal bdev inode and
it doesn't make sense for internal bdev inode to have any metadata
buffer heads. Just drop the pointless invalidate_inode_buffers() call
and consequently the whole bdev_evict_inode() because generic code takes
care of the rest.

CC: linux-block@vger.kernel.org
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/20260326095354.16340-47-jack@suse.cz
Signed-off-by: Christian Brauner <brauner@kernel.org>

authored by

Jan Kara and committed by
Christian Brauner
f9480ecf 70450fcf

-8
-8
block/bdev.c
··· 417 417 inode_init_once(&ei->vfs_inode); 418 418 } 419 419 420 - static void bdev_evict_inode(struct inode *inode) 421 - { 422 - truncate_inode_pages_final(&inode->i_data); 423 - invalidate_inode_buffers(inode); /* is it needed here? */ 424 - clear_inode(inode); 425 - } 426 - 427 420 static const struct super_operations bdev_sops = { 428 421 .statfs = simple_statfs, 429 422 .alloc_inode = bdev_alloc_inode, 430 423 .free_inode = bdev_free_inode, 431 424 .drop_inode = inode_just_drop, 432 - .evict_inode = bdev_evict_inode, 433 425 }; 434 426 435 427 static int bd_init_fs_context(struct fs_context *fc)