Skip to content

Commit 5829741

Browse files
LiBaokun96tytso
authored andcommitted
ext4: enable DIOREAD_NOLOCK by default for BS > PS as well
The dioread_nolock related processes already support large folio, so dioread_nolock is enabled by default regardless of whether the blocksize is less than, equal to, or greater than PAGE_SIZE. Signed-off-by: Baokun Li <libaokun1@huawei.com> Reviewed-by: Zhang Yi <yi.zhang@huawei.com> Reviewed-by: Jan Kara <jack@suse.cz> Reviewed-by: Ojaswin Mujoo <ojaswin@linux.ibm.com> Message-ID: <20251121090654.631996-6-libaokun@huaweicloud.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
1 parent d37a7dd commit 5829741

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

fs/ext4/super.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4392,8 +4392,7 @@ static void ext4_set_def_opts(struct super_block *sb,
43924392
((def_mount_opts & EXT4_DEFM_NODELALLOC) == 0))
43934393
set_opt(sb, DELALLOC);
43944394

4395-
if (sb->s_blocksize <= PAGE_SIZE)
4396-
set_opt(sb, DIOREAD_NOLOCK);
4395+
set_opt(sb, DIOREAD_NOLOCK);
43974396
}
43984397

43994398
static int ext4_handle_clustersize(struct super_block *sb)

0 commit comments

Comments
 (0)