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.

affs: Sync and invalidate metadata buffers from affs_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-63-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
23dae9e1 4a7fd182

+2
+2
fs/affs/inode.c
··· 267 267 if (!inode->i_nlink) { 268 268 inode->i_size = 0; 269 269 affs_truncate(inode); 270 + } else { 271 + sync_mapping_buffers(&inode->i_data); 270 272 } 271 273 272 274 invalidate_inode_buffers(inode);