evict() writes out what I_METADATA_WRITEBACK tracks before it calls ->evict_inode() and since mmb_mark_buffer_dirty() sets the bit that includes the tracked metadata buffers. So there's nothing left for ext4_evict_inode() to sync without a journal, and with a journal there are no tracked buffers. Signed-off-by: Christian Brauner (Amutable) --- fs/ext4/inode.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 18362580097f..b6c8c11525a8 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -250,8 +250,6 @@ void ext4_evict_inode(struct inode *inode) if (EXT4_I(inode)->i_flags & EXT4_EA_INODE_FL) ext4_evict_ea_inode(inode); if (inode->i_nlink) { - struct mapping_metadata_bhs *mmb; - /* * If there's dirty page will lead to data loss, user * could see stale data. @@ -261,9 +259,6 @@ void ext4_evict_inode(struct inode *inode) ext4_warning_inode(inode, "data will be lost"); truncate_inode_pages_final(&inode->i_data); - mmb = ext4_i_metadata_bhs(inode); - if (mmb) - mmb_sync(mmb); goto no_delete; } -- 2.53.0