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 --- fs/affs/inode.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/affs/inode.c b/fs/affs/inode.c index 0bfc7d151dcd..84afa862f220 100644 --- a/fs/affs/inode.c +++ b/fs/affs/inode.c @@ -267,6 +267,8 @@ affs_evict_inode(struct inode *inode) if (!inode->i_nlink) { inode->i_size = 0; affs_truncate(inode); + } else { + sync_mapping_buffers(&inode->i_data); } invalidate_inode_buffers(inode); -- 2.51.0