]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ext4: enable DIOREAD_NOLOCK by default for BS > PS as well
authorBaokun Li <libaokun1@huawei.com>
Fri, 21 Nov 2025 09:06:35 +0000 (17:06 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 29 Nov 2025 03:35:26 +0000 (22:35 -0500)
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>
fs/ext4/super.c

index 707f890d674e57af93ee3be327e548cc60f8afb3..f39679892e71324a9ba47803fe67e6fdd536dec8 100644 (file)
@@ -4392,8 +4392,7 @@ static void ext4_set_def_opts(struct super_block *sb,
            ((def_mount_opts & EXT4_DEFM_NODELALLOC) == 0))
                set_opt(sb, DELALLOC);
 
-       if (sb->s_blocksize <= PAGE_SIZE)
-               set_opt(sb, DIOREAD_NOLOCK);
+       set_opt(sb, DIOREAD_NOLOCK);
 }
 
 static int ext4_handle_clustersize(struct super_block *sb)