Skip to content

Commit 6cb93ea

Browse files
pelwellpopcornmix
authored andcommitted
Revert "ext4: make mb_optimize_scan performance mount option work with extents"
This reverts commit 3c65b73. The reverted commit is likely to also be reverted upstream, but with a performance regression like this I don't want to wait for that. See: #5097 Signed-off-by: Phil Elwell <[email protected]>
1 parent 1398fe1 commit 6cb93ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ext4/mballoc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,7 @@ static inline int should_optimize_scan(struct ext4_allocation_context *ac)
955955
return 0;
956956
if (ac->ac_criteria >= 2)
957957
return 0;
958-
if (!ext4_test_inode_flag(ac->ac_inode, EXT4_INODE_EXTENTS))
958+
if (ext4_test_inode_flag(ac->ac_inode, EXT4_INODE_EXTENTS))
959959
return 0;
960960
return 1;
961961
}

0 commit comments

Comments
 (0)