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 <riteshh@linux.ibm.com> Link: https://lore.kernel.org/r/20191016073711.4141-6-riteshh@linux.ibm.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
1 parent c8cc881 commit c33fbe8

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

‎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)