From patchwork Tue Oct 8 12:01:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baokun Li X-Patchwork-Id: 1994232 Return-Path: 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=nlwb=re=vger.kernel.org=linux-ext4+bounces-4527-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) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XNF6L36Jrz1xvB for ; Tue, 8 Oct 2024 23:03:37 +1100 (AEDT) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4XNF6K13XJz4wcr for ; Tue, 8 Oct 2024 23:03:37 +1100 (AEDT) Received: by gandalf.ozlabs.org (Postfix) id 4XNF6K0qPxz4wyh; Tue, 8 Oct 2024 23:03:37 +1100 (AEDT) Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: gandalf.ozlabs.org; arc=pass smtp.remote-ip=139.178.88.99 arc.chain=subspace.kernel.org ARC-Seal: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1728389017; cv=pass; b=LOFHJAOMfBoRd68qtB4JOysEcwFJxQx/76WCiHovzwVZXxgMdq4FDZCHWPYa7NakfKr/a4GGtnS0qrbJJ3TQ703T24IYz9PuaBmPNfbDQRo6lDLWxc/mO15NObm+dLXjJDa7sNuFgVCwcMqjkAHViBn0KUQvV4jAGElHXUyKZFFkZ41hFH6uOsFWqb8VVmRq01CIf+Pe41KCj0tV23w0Xrm1t1/y6u3fA3j3fQdWAQexzGhE7lik6mkQsT1k7T5JMYTnobdqqyjeZpQ4BeATc37f6hLrOmUu6AaX5+5vNSRN5Bhq1r4MIOnISsen6a7/NXKZML96FqosxNkPTLVTyQ== ARC-Message-Signature: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1728389017; c=relaxed/relaxed; bh=itQJO3HdHNntmta83dL3zYfmzLDAAODXukLYeOcciVg=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=lMP5iA4WoP4b02lV+qHj8Dz6nGeVFkIfFeiYbyMDOtCpqeHFn88jlSPISJZBaImAVX4HIegjZDTdDarhDxfyUvodbLeHSp3hWQcoMIXr7LAHxY/ZzvCBP+W+YM363AjNfb8P1vWt4xE4ZTVx8BZK/xgmlFCS5BH4aHRRnCT9295I2nt4LncB4T7JcOJi7TUDU9q08bs7D5bk/au+GfXhErJ1Ex35rjcECa/DSZyUFzDjDFfO6xWzEssg4VlFVwgcx86kdXo+KcNGlyQCUykNPU4l9LWv5jl86gXiFnOzVw19J98GmR4U0RtGoTr3QHC2fbpCd3h4wICXNzNgc7N1tg== ARC-Authentication-Results: i=2; gandalf.ozlabs.org; dmarc=none (p=none dis=none) header.from=huaweicloud.com; spf=pass (client-ip=139.178.88.99; helo=sv.mirrors.kernel.org; envelope-from=linux-ext4+bounces-4527-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=139.178.88.99; helo=sv.mirrors.kernel.org; envelope-from=linux-ext4+bounces-4527-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org [139.178.88.99]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by gandalf.ozlabs.org (Postfix) with ESMTPS id 4XNF6J3Y2Kz4wcr for ; Tue, 8 Oct 2024 23:03:36 +1100 (AEDT) Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id D5E9B28280E for ; Tue, 8 Oct 2024 12:03:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C20A21D8E01; Tue, 8 Oct 2024 12:03:31 +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 3CA821D6DA3; Tue, 8 Oct 2024 12:03:27 +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=1728389011; cv=none; b=YpeEo6xxBkZRemlT9xuqwsb83rd9TpqpFNI+TUzb0BF/zefp7epiYvn3UaZnb2otTe5MIvaxI0V+1nsDhI8nGmOjj3vZOCDK+epd0aHIWQw+MaPNJglLJGxghg2tOj9bnWWVfdrM2nWkCff4Z01HJjxVT4dDocC5X7q+GIoQHG4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728389011; c=relaxed/simple; bh=rI920+A7PTwdpdexWvUgfSuMfU4/CAWs4q8b3iY0JqI=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=QE9JOTz8/YwSkn+G6keKN+3ZpeqzoxF7AyWfXmls76gSDkOIMw3iAmimSYQlL1Lk6vvuijxKyoj4JQZ5Ao32KmdH5VDJfsPAN9EpyGS2nvEgCuK3z85dxwflFdrjwxm/qdsJZMYk0DPV41CZZi/VJqpgZrSCyYcQrgXIAlIhnKA= 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 ESMTP id 4XNF5l43vFz4f3jsD; Tue, 8 Oct 2024 20:03:07 +0800 (CST) Received: from mail02.huawei.com (unknown [10.116.40.128]) by mail.maildlp.com (Postfix) with ESMTP id 5F0E41A08FC; Tue, 8 Oct 2024 20:03:24 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.104.67]) by APP4 (Coremail) with SMTP id gCh0CgCHusaKHwVnvP0TDg--.64813S4; Tue, 08 Oct 2024 20:03:24 +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, yi.zhang@huawei.com, yangerkun@huawei.com, libaokun@huaweicloud.com, Baokun Li Subject: [PATCH] ext4: show the default enabled prefetch_block_bitmaps option Date: Tue, 8 Oct 2024 20:01:34 +0800 Message-Id: <20241008120134.3758097-1-libaokun@huaweicloud.com> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-CM-TRANSID: gCh0CgCHusaKHwVnvP0TDg--.64813S4 X-Coremail-Antispam: 1UD129KBjvdXoW7GryxWr45ur4kKr45Zry7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okun Li After commit 21175ca434c5 ("ext4: make prefetch_block_bitmaps default"), we enable 'prefetch_block_bitmaps' by default, but this is not shown in the '/proc/fs/ext4/sdx/options' procfs interface. This makes it impossible to distinguish whether the feature is enabled by default or not, so 'prefetch_block_bitmaps' is shown in the 'options' procfs interface when prefetch_block_bitmaps is enabled by default. This makes it easy to notice changes to the default mount options between versions through the '/proc/fs/ext4/sdx/options' procfs interface. Signed-off-by: Baokun Li Reviewed-by: Jan Kara --- fs/ext4/super.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/ext4/super.c b/fs/ext4/super.c index b77acba4a719..c88a47639e9c 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -3030,6 +3030,9 @@ static int _ext4_show_options(struct seq_file *seq, struct super_block *sb, SEQ_OPTS_PUTS("mb_optimize_scan=1"); } + if (!test_opt(sb, NO_PREFETCH_BLOCK_BITMAPS)) + SEQ_OPTS_PUTS("prefetch_block_bitmaps"); + ext4_show_quota_options(seq, sb); return 0; }