Skip to content

Commit c33fbe8

Browse files
riteshharjanitytso
authored andcommitted
ext4: Enable blocksize < pagesize for dioread_nolock
All support is now added for blocksize < pagesize for dioread_nolock. This patch removes those checks which disables dioread_nolock feature for blocksize != pagesize. Signed-off-by: Ritesh Harjani <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
1 parent c8cc881 commit c33fbe8

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

fs/ext4/super.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2105,16 +2105,6 @@ static int parse_options(char *options, struct super_block *sb,
21052105
}
21062106
}
21072107
#endif
2108-
if (test_opt(sb, DIOREAD_NOLOCK)) {
2109-
int blocksize =
2110-
BLOCK_SIZE << le32_to_cpu(sbi->s_es->s_log_block_size);
2111-
2112-
if (blocksize < PAGE_SIZE) {
2113-
ext4_msg(sb, KERN_ERR, "can't mount with "
2114-
"dioread_nolock if block size != PAGE_SIZE");
2115-
return 0;
2116-
}
2117-
}
21182108
return 1;
21192109
}
21202110

0 commit comments

Comments
 (0)