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.

bfs: Sync and invalidate metadata buffers from bfs_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-62-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
4a7fd182 77ff1ff2

+2
+2
fs/bfs/inode.c
··· 187 187 dprintf("ino=%08lx\n", ino); 188 188 189 189 truncate_inode_pages_final(&inode->i_data); 190 + if (inode->i_nlink) 191 + sync_mapping_buffers(&inode->i_data); 190 192 invalidate_inode_buffers(inode); 191 193 clear_inode(inode); 192 194