diff options
| author | Jan Kara <jack@suse.cz> | 2026-03-26 10:53:59 +0100 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-03-26 15:03:27 +0100 |
| commit | f9480ecf939d67a2e0cc5915a82fb1f3c5fcd1d4 (patch) | |
| tree | e2885a7d155cbbd80c13da36cb9faddce820102a /block | |
| parent | 70450fcfd28ad3d5a6ac77986497be1c28721eb2 (diff) | |
| download | linux-next-history-f9480ecf939d67a2e0cc5915a82fb1f3c5fcd1d4.tar.gz | |
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>
Diffstat (limited to 'block')
| -rw-r--r-- | block/bdev.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/block/bdev.c b/block/bdev.c index ed022f8c48c79..bb0ffa3bb4dfb 100644 --- a/block/bdev.c +++ b/block/bdev.c @@ -417,19 +417,11 @@ static void init_once(void *data) inode_init_once(&ei->vfs_inode); } -static void bdev_evict_inode(struct inode *inode) -{ - truncate_inode_pages_final(&inode->i_data); - invalidate_inode_buffers(inode); /* is it needed here? */ - clear_inode(inode); -} - static const struct super_operations bdev_sops = { .statfs = simple_statfs, .alloc_inode = bdev_alloc_inode, .free_inode = bdev_free_inode, .drop_inode = inode_just_drop, - .evict_inode = bdev_evict_inode, }; static int bd_init_fs_context(struct fs_context *fc) |
