| Message ID | 20251025032221.2905818-6-libaokun@huaweicloud.com |
|---|---|
| State | Superseded |
| Headers | show
Return-Path: <SRS0=6FB2=5C=vger.kernel.org=linux-ext4+bounces-11056-patchwork-incoming=ozlabs.org@ozlabs.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org (client-ip=2404:9400:2221:ea00::3; helo=mail.ozlabs.org; envelope-from=srs0=6fb2=5c=vger.kernel.org=linux-ext4+bounces-11056-patchwork-incoming=ozlabs.org@ozlabs.org; receiver=patchwork.ozlabs.org) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4ctlfT0RXfz1yJP for <incoming@patchwork.ozlabs.org>; Sat, 25 Oct 2025 14:30:57 +1100 (AEDT) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4ctlfS7408z4wML for <incoming@patchwork.ozlabs.org>; Sat, 25 Oct 2025 14:30:56 +1100 (AEDT) Received: by gandalf.ozlabs.org (Postfix) id 4ctlfS707wz4wM1; Sat, 25 Oct 2025 14:30:56 +1100 (AEDT) Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: gandalf.ozlabs.org; arc=pass smtp.remote-ip="2605:f480:58:1:0:1994:3:14" arc.chain=subspace.kernel.org ARC-Seal: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1761363056; cv=pass; b=VvCS0UgYAJ1rkLKT1ZRAMv7cf9/OBieHfFRRofzodfDVR3pa3/a77I7fmJPGfqH6U0a7/3b7dTYwaMW3KEyBk/8U4uGg8p3MyO1iT9DEqiuVMVejeviNXW+L29NPGZWDlDkmqerTzwF9px7ygABrvuYfk1388jFLAcLMviZHBYiyZXkryZfCFf0V5Xv+REettYqrSk4Hlrr/WUpnHTGpu9Gtol2LmCOMseG3T67dDxggjy6fhNhZMvUOmJ0dDdFqnyz0GG+bzb86CXjiYlzwDFzloJstabVd0AyTI59bV9pe+ALY4/mSMa5JHX1trco0UPQkGxfA9d2AnBq93nCLUw== ARC-Message-Signature: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1761363056; c=relaxed/relaxed; bh=zo5mN3q3zgS1gBMPoolmggvUVrhMkXo0xpHgwlBbT3I=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=M8rieLdDGbq+94zRLQxIQNOUDg7uw5eqh7e+839dfR5PEnvF+BuARnZTu4o7ORj4triLzr/Qgn8VQex4NaBTERppT/Mfs7xVW2ysTXtxDLQgoGq+EcmimVcRc3Rr80wlWCSJ6N+bSARq1khsPK2a4CiDwOVlCp8IfbaZ3DU7KLmb6N7Ku3UqOVgZnzKSUgcO0tyAcMjs38nqrMOwf3X0UBroZbV4Kejp+Rfa+nASCkVBupvs/81otS0VL8hsKZQdPKD/lqALQxaiSbKBZfedBFky+JrpzjTiQLH5wGYcinaOypNwwbqw4Fhj60xGJxcgeR4bPvX4zp4zbfkQXnChUw== ARC-Authentication-Results: i=2; gandalf.ozlabs.org; dmarc=none (p=none dis=none) header.from=huaweicloud.com; spf=pass (client-ip=2605:f480:58:1:0:1994:3:14; helo=dfw.mirrors.kernel.org; envelope-from=linux-ext4+bounces-11056-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org Authentication-Results: gandalf.ozlabs.org; dmarc=none (p=none dis=none) header.from=huaweicloud.com Authentication-Results: gandalf.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2605:f480:58:1:0:1994:3:14; helo=dfw.mirrors.kernel.org; envelope-from=linux-ext4+bounces-11056-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) Received: from dfw.mirrors.kernel.org (dfw.mirrors.kernel.org [IPv6:2605:f480:58:1:0:1994:3:14]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by gandalf.ozlabs.org (Postfix) with ESMTPS id 4ctlfP3z3tz4wC9 for <patchwork-incoming@ozlabs.org>; Sat, 25 Oct 2025 14:30:53 +1100 (AEDT) Received: from smtp.subspace.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.mirrors.kernel.org (Postfix) with ESMTPS id CC0FF4E4274 for <patchwork-incoming@ozlabs.org>; Sat, 25 Oct 2025 03:30:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E87162798FD; Sat, 25 Oct 2025 03:30:08 +0000 (UTC) X-Original-To: linux-ext4@vger.kernel.org Received: from dggsgout12.his.huawei.com (dggsgout12.his.huawei.com [45.249.212.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D0644259CA5; Sat, 25 Oct 2025 03:30:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.56 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761363008; cv=none; b=d6GWM+WE1+QFN4aVGa04SpGcdgIw99ZkgncC1alPKh8Ujixo4Vf0dPksXjfBp5hZyQjayXxdZFTCepdLEp55Zn2N1voRKSxIuXCcoiHLVFjMK0H9WMIiR4MkHO8rvLgqXHWMq6uK/kKAwMx7UhCXVW7WndblDZ+rcBqjvw/PWQE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761363008; c=relaxed/simple; bh=R4vnuJrUkJWqkh1YwVJ86sGr2eyaRmjTMNncDSocLA0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=HfakDc22zrHcoplKm59s6E9pNXVQeK38WU0AT6HI9N203FQRvKfkiJtw+jonbCi8ivR/W+EnR5dG2umiuH9UMpv9zrI/CkonQyamrJC+AECsLxu0gQnxkf6eweH8USniJZ4yf9LrM9hOz9wG1Ctnge0ftcmC3Vo9XhTCv4WPlew= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=huaweicloud.com; spf=pass smtp.mailfrom=huaweicloud.com; arc=none smtp.client-ip=45.249.212.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=huaweicloud.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huaweicloud.com Received: from mail.maildlp.com (unknown [172.19.163.216]) by dggsgout12.his.huawei.com (SkyGuard) with ESMTPS id 4ctlcS15h7zKHMNW; Sat, 25 Oct 2025 11:29:12 +0800 (CST) Received: from mail02.huawei.com (unknown [10.116.40.75]) by mail.maildlp.com (Postfix) with ESMTP id D3CB31A17F0; Sat, 25 Oct 2025 11:30:03 +0800 (CST) Received: from huaweicloud.com (unknown [10.50.87.129]) by APP2 (Coremail) with SMTP id Syh0CgBHnEQ6RPxox1YbBg--.45388S9; Sat, 25 Oct 2025 11:30:03 +0800 (CST) From: libaokun@huaweicloud.com To: linux-ext4@vger.kernel.org Cc: tytso@mit.edu, adilger.kernel@dilger.ca, jack@suse.cz, linux-kernel@vger.kernel.org, kernel@pankajraghav.com, mcgrof@kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, yi.zhang@huawei.com, yangerkun@huawei.com, chengzhihao1@huawei.com, libaokun1@huawei.com, libaokun@huaweicloud.com Subject: [PATCH 05/25] ext4: enable DIOREAD_NOLOCK by default for BS > PS as well Date: Sat, 25 Oct 2025 11:22:01 +0800 Message-Id: <20251025032221.2905818-6-libaokun@huaweicloud.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20251025032221.2905818-1-libaokun@huaweicloud.com> References: <20251025032221.2905818-1-libaokun@huaweicloud.com> Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: <linux-ext4.vger.kernel.org> List-Subscribe: <mailto:linux-ext4+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-ext4+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: Syh0CgBHnEQ6RPxox1YbBg--.45388S9 X-Coremail-Antispam: 1UD129KBjvdXoW7XF18GFWrWw1UZw4DGw4rKrg_yoWfAwbEva yfJrWUGrs5tr1S93WruayUJFsYkw48ur18Gws5tr13XFn0qrWxX34qqr98uF15uF4FqrWf Ars5XF13GFy2gjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbm8FF20E14v26rWj6s0DM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28IrcIa0xkI8VA2jI8067AKxVWUAVCq3wA2048vs2 IY020Ec7CjxVAFwI0_Xr0E3s1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28E F7xvwVC0I7IYx2IY67AKxVW7JVWDJwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVW8Jr0_Cr 1UM28EF7xvwVC2z280aVAFwI0_GcCE3s1l84ACjcxK6I8E87Iv6xkF7I0E14v26rxl6s0D M2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjx v20xvE14v26r1Y6r17McIj6I8E87Iv67AKxVW8Jr0_Cr1UMcvjeVCFs4IE7xkEbVWUJVW8 JwACjcxG0xvY0x0EwIxGrwACjI8F5VA0II8E6IAqYI8I648v4I1lFIxGxcIEc7CjxVA2Y2 ka0xkIwI1lw4CEc2x0rVAKj4xxMxkF7I0En4kS14v26r1q6r43MxAIw28IcxkI7VAKI48J MxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwV AFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUtVW8ZwCIc40Y0x0EwIxGrwCI42IY6xIIjxv2 0xvE14v26r1I6r4UMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWxJVW8Jr1lIxAIcVCF04k26c xKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAF wI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x0JUdsqAUUUUU= X-CM-SenderInfo: 5olet0hnxqqx5xdzvxpfor3voofrz/1tbiAQAMBWj7UbRJGwAAss X-Spam-Status: No, score=-1.0 required=5.0 tests=ARC_SIGNED,ARC_VALID, DMARC_MISSING,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=disabled version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org |
| Series |
ext4: enable block size larger than page size
|
expand
|
On Sat 25-10-25 11:22:01, libaokun@huaweicloud.com wrote: > From: Baokun Li <libaokun1@huawei.com> > > 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> Looks good. Feel free to add: Reviewed-by: Jan Kara <jack@suse.cz> Honza > --- > fs/ext4/super.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/fs/ext4/super.c b/fs/ext4/super.c > index 894529f9b0cc..aa5aee4d1b63 100644 > --- a/fs/ext4/super.c > +++ b/fs/ext4/super.c > @@ -4383,8 +4383,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) > -- > 2.46.1 >
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 894529f9b0cc..aa5aee4d1b63 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -4383,8 +4383,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)