From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B1E5EC4338F for ; Wed, 18 Aug 2021 06:44:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 971806102A for ; Wed, 18 Aug 2021 06:44:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238515AbhHRGpW (ORCPT ); Wed, 18 Aug 2021 02:45:22 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:57266 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238080AbhHRGo6 (ORCPT ); Wed, 18 Aug 2021 02:44:58 -0400 Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 9AF8A20057 for ; Wed, 18 Aug 2021 06:44:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1629269063; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=rlgjcbhTe0Djf03PpcccKX5OsJc6UfZE5LPSZfarZhM=; b=Olp20B/BhcU1jenVbn+b1FpxktgrJWW+goDKXpg/vNeyK3lbYYjd03k54LxyjfMENWqAU1 pB26x5DvTNpfDSsQrM+23sBL7yPK3ooOBSAqHOyMVYkLXLU/9mdynAMSeAwP9wg0xj/+cU qgphqZIm6vZl7jzoxuXflgX5BWjLjRw= Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap1.suse-dmz.suse.de (Postfix) with ESMTPS id D1A52134B1 for ; Wed, 18 Aug 2021 06:44:22 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id 3LwLJEasHGH4dAAAGKfGzw (envelope-from ) for ; Wed, 18 Aug 2021 06:44:22 +0000 From: Qu Wenruo To: linux-btrfs@vger.kernel.org Subject: [PATCH 0/3] btrfs-progs: make subpage warnings more strict Date: Wed, 18 Aug 2021 14:44:17 +0800 Message-Id: <20210818064420.866803-1-wqu@suse.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org For the incoming support of more page sizes for subpage RW mount, we will require tree blocks to be nodesize aligned. This patch prepare such restrict warnings for btrfs-check and update self-tests to handle them. Currently all convert/fsck/misc can pass except one unrelated regression, fsck/025, which is caused by "btrfs-progs: Drop the type check in init_alloc_chunk_ctl_policy_regular". All fsck images except fsck/018 are newer enough to have all their tree blocks nodesize aligned, so they won't cause any new warnings. But still, for read-only tests, we will skip the subpage warnings as we only want to ensure our writes from btrfs-progs won't cause new subpage warnings. Qu Wenruo (3): btrfs-progs: tests: also check subpage warning for type 2 test cases btrfs-progs: tests: don't check subpage related warnings for fsck type 1 tests btrfs-progs: require full nodesize alignement for subpage support check/main.c | 3 ++- check/mode-common.h | 22 +++++++++++++--------- check/mode-lowmem.c | 3 ++- tests/common | 16 +++++++++++++--- tests/fsck-tests.sh | 9 ++++++++- 5 files changed, 38 insertions(+), 15 deletions(-) -- 2.32.0