mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 10:04:04 +02:00
udf: Sync and invalidate metadata buffers from udf_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-58-jack@suse.cz Tested-by: syzbot@syzkaller.appspotmail.com Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
parent
63f1f4b6c9
commit
153e596045
|
|
@ -154,6 +154,8 @@ void udf_evict_inode(struct inode *inode)
|
|||
}
|
||||
}
|
||||
truncate_inode_pages_final(&inode->i_data);
|
||||
if (!want_delete)
|
||||
sync_mapping_buffers(&inode->i_data);
|
||||
invalidate_inode_buffers(inode);
|
||||
clear_inode(inode);
|
||||
kfree(iinfo->i_data);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user