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.

fat: Sync and invalidate metadata buffers from fat_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-57-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
63f1f4b6 5f36c9ca

+3 -1
+3 -1
fs/fat/inode.c
··· 657 657 if (!inode->i_nlink) { 658 658 inode->i_size = 0; 659 659 fat_truncate_blocks(inode, 0); 660 - } else 660 + } else { 661 + sync_mapping_buffers(inode->i_mapping); 661 662 fat_free_eofblocks(inode); 663 + } 662 664 663 665 invalidate_inode_buffers(inode); 664 666 clear_inode(inode);