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.

ext2: Sync and invalidate metadata buffers from ext2_evict_inode()

There are only very few filesystems using generic metadata buffer head
tracking and everybody is paying the overhead. When we remove this
tracking for inode reclaim code .evict will start to see inodes with
metadata buffers attached so write them out and prune them.

Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/20260326095354.16340-60-jack@suse.cz
Tested-by: syzbot@syzkaller.appspotmail.com
Signed-off-by: Christian Brauner <brauner@kernel.org>

authored by

Jan Kara and committed by
Christian Brauner
4211dc89 61aa62dd

+2 -1
+2 -1
fs/ext2/inode.c
··· 94 94 if (inode->i_blocks) 95 95 ext2_truncate_blocks(inode, 0); 96 96 ext2_xattr_delete_inode(inode); 97 + } else { 98 + sync_mapping_buffers(&inode->i_data); 97 99 } 98 - 99 100 invalidate_inode_buffers(inode); 100 101 clear_inode(inode); 101 102