Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 99E25EB64DD for ; Fri, 11 Aug 2023 15:51:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236309AbjHKPvk (ORCPT ); Fri, 11 Aug 2023 11:51:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232094AbjHKPvj (ORCPT ); Fri, 11 Aug 2023 11:51:39 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 157F42123 for ; Fri, 11 Aug 2023 08:51:39 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (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 CAC031F890; Fri, 11 Aug 2023 15:51:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1691769097; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=WN0JM0erbfharefSHi1T14doiArVKlyeeY1GKC2aCJA=; b=3YKBCDmyPQ5oP5uJ2gbktT0guToOz2nqed2HKZKjtWwMZ/wtjqZTrqQco+A0ufNLu9Arnp 0a1ZdVwM6IZu+CnE+mXCeNmOSx3Dj3hT1vGmu4rxrkf8EfTbXPWUY9EKhvswZfKmY2OoBQ 9zdylgM/cELwQLMaoRsgKxGyf8w6OMg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1691769097; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=WN0JM0erbfharefSHi1T14doiArVKlyeeY1GKC2aCJA=; b=H1IU64M/j3/uhKuYRkhqsGuA1F5Uk2gY9YD0lHbqYfJzQ0HP2zxbc/OxrWA6RttAlq9OdM PzX1PtK+03FcYECQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (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 imap2.suse-dmz.suse.de (Postfix) with ESMTPS id A470913592; Fri, 11 Aug 2023 15:51:37 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id JMFhJwlZ1mR3PAAAMHmgww (envelope-from ); Fri, 11 Aug 2023 15:51:37 +0000 Date: Fri, 11 Aug 2023 17:45:12 +0200 From: David Sterba To: Anand Jain Cc: linux-btrfs@vger.kernel.org Subject: Re: [PATCH 0/7 v2] metadata_uuid misc cleanup and fixes part2 Message-ID: <20230811154512.GU2420@twin.jikos.cz> Reply-To: dsterba@suse.cz References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Mon, Jul 31, 2023 at 07:16:31PM +0800, Anand Jain wrote: > v2: > The new patch 1/7 peels btrfs_sb_fsid_prt() helper function from 1/4 in v1, > This function is used in patch 2/7 and patch 4/7 in v2. > > Patch 6/7, adds btrfs_sb_metadata_uuid_or_null() another helper func, used > in 7/7 in volumes.c. Further, used in the upcoming fsid_changing patch. > Pushing this set now which are ready. This has passed fstests -g quick. > > ----- original ----- > These patches are cleanups related to metadata_uuid. Please ref to the > patch for details. > > Anand Jain (7): > btrfs: add a helper to read the superblock metadata_uuid > btrfs: simplify memcpy either of metadata_uuid or fsid > btrfs: fix fsid in btrfs_validate_super > btrfs: fix metadata_uuid in btrfs_validate_super > btrfs: drop redundant check to use fs_devices::metadata_uuid The above added to misc-next, thanks. > btrfs: add a superblock helper to read metadata_uuid or NULL > btrfs: use btrfs_sb_metadata_uuid_or_null I think this can simplify the alloc_fs_devices a bit more as commented, please resend. Thanks.