Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp231928lqo; Tue, 7 May 2024 19:28:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXtDoQqvIfsV/4J2Aj76b0/UpEpyzCDCGneduWg69CBFPIgsdCovoO/wHwE72qVJX7eRMz9TY+gxBkurJweqGj5rEEYziJ4DjoHDFQeBA== X-Google-Smtp-Source: AGHT+IEw5/P4xcKUmOPO3rW+PYHto5hPUgIxEpQ0fUyFTSw6IUCSt6grk/0gzMcI5524HBKmgkFi X-Received: by 2002:a05:622a:1ba4:b0:43a:f2ac:72d4 with SMTP id d75a77b69052e-43dbf3c760emr14319041cf.6.1715135288962; Tue, 07 May 2024 19:28:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715135288; cv=pass; d=google.com; s=arc-20160816; b=F8EGbRIJycqDy2Z44ZbbJ2KUW4LJV1f/IIKq+elq+5XfMTh7cFpTRCDvVRN8iMHNKX 114zGhzKSqFQ68YCe7kxnTa7488BfubgMKOEkGkYLjhbXYxcEmX1zwC4owXTcjSjFvU7 CgC0NWqaR33Y9HXFA3FIW1T3jniJGVWvwdQ34E5Wiv/oUr0dy8DtmX+u2nFN/WXqgH3V M0XQqtOwVOc27etmadr/p4J0bVYFOAcZxIS7BB29b9YeGCQmUO46SGYYjBUTL5zABdQd yhDONKURodDOuekUM0SbK8Nrb9cLPhH6DVvoD7NtsoqQrp7MBds+OyGCet1emBUsLsSA f2Qw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:dkim-signature:date; bh=FGZyhctyl0sVp+jffQYu4jnwoerfNp5K7r6RyHG7Dck=; fh=1EacZ3ldU7WX3I+3Yzf5ty3V+cLfuGy1nYwSnD6/58M=; b=K30G5RvkcAgIKwfn2KvOPsfBH0skr/m82AkkOwwFoOSBMG9iXd+SDSz96kAUlBujBR jrMdcedrBjIS2mz9rveyomnDtyTC+6SPGRoi8LNwMVSlf3qsE6DqOhaahnkltJaDng5v IODZ8RZcrUbVUXdmMsFsW8k9X8sncBCrpIhe86wPhSdu94loAGIEX/1daj2gxhnBWl8d 6T3oY5axW6RuzXFVx4Jb1/cGlCeOmyj80CLsu2fEqeWGpN5ddMZjiY8nq+cU8PrO9tV3 C9LBU1aTczqefrndKYEVLEBpojMiFkfKDLTHVgFjBjrosFOnkRyQBG88uwg6SrtmGfWx w6gQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=ZT0V59GR; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-172627-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172627-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id s33-20020a05622a1aa100b0043ae223fcf3si13354209qtc.34.2024.05.07.19.28.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 19:28:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-172627-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=ZT0V59GR; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-172627-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172627-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id AF6FD1C2350E for ; Wed, 8 May 2024 02:28:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B2467DDDC; Wed, 8 May 2024 02:27:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="ZT0V59GR" Received: from out-179.mta0.migadu.com (out-179.mta0.migadu.com [91.218.175.179]) (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 D887AD53C for ; Wed, 8 May 2024 02:27:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715135271; cv=none; b=u8vkaQlPD7fhXAJqR9RO45Z/9Gozt6TOk120ugWmV6gg/c8DbLDTWyqz53F1+yAwRHEsgGRSt9q90kYWDzjfyIsNYYwgmmGkK/DXUjxKjvnneV8lECDRDqTdyVbtdxKoQDuf+gywrkWvPIDzM1GvgEVjAnCQLTpp5oVDSlVC+Ig= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715135271; c=relaxed/simple; bh=FqHHjfDx9ENi3Pts6alsW6C4sQF4MogYbWkxo0Ih7J8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=uPz7Q3twS6LKGIlIVaWv8CUSTF2aRZVmiP10vgtADpnyOPrfhfJiBtNyoxrZTBFiT4LNo1uqtmafBtSqJ1oXmzj4gf+lI8C2270eXiIqLKQRQewZXKPFhhBdNb/Y1hZwTYYhJzVqUStJR5ToTCBJAwTCdsUnj9zAsy7A9jaEf/U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=ZT0V59GR; arc=none smtp.client-ip=91.218.175.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Date: Tue, 7 May 2024 22:27:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1715135267; h=from:from:reply-to:subject:subject: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=FGZyhctyl0sVp+jffQYu4jnwoerfNp5K7r6RyHG7Dck=; b=ZT0V59GR7QaJbFwj0A+CDc/+5dJ1S1WoXka0vIF7pJ48MHId7ZMCGB5dVmdD/fpAQ9gDGb aL4Fs58nzcOshLilnH0f98xkmHDR09r/GgJgTVBIYTnDIwU+2mvdS8HvjeTPPiQbl0uFg4 soalv7w0Ncr9z8JNXQU0/Bg4ZwFNLl8= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Petr Vorel Cc: Brian Foster , linux-bcachefs@vger.kernel.org, Su Yue , Coly Li , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 1/1] bcachefs: Move BCACHEFS_STATFS_MAGIC value to UAPI magic.h Message-ID: References: <20240507153757.150891-1-pvorel@suse.cz> <20240507164430.GD138935@pevik> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240507164430.GD138935@pevik> X-Migadu-Flow: FLOW_OUT On Tue, May 07, 2024 at 06:44:30PM +0200, Petr Vorel wrote: > > On Tue, May 07, 2024 at 05:37:57PM +0200, Petr Vorel wrote: > > > Move BCACHEFS_STATFS_MAGIC value to UAPI under > > > BCACHEFS_SUPER_MAGIC definition (use common approach for name) and reuse the > > > definition in bcachefs_format.h BCACHEFS_STATFS_MAGIC. > > > > There are other bcachefs magic definitions: BCACHE_MAGIC, BCHFS_MAGIC, > > > which use UUID_INIT() and are used only in libbcachefs. Therefore move > > > only BCACHEFS_STATFS_MAGIC value, which can be used outside of > > > libbcachefs for f_type field in struct statfs in statfs() or fstatfs(). > > > > Suggested-by: Su Yue > > > Signed-off-by: Petr Vorel > > > --- > > > I was thinking you'd just rename the STATFS_MAGIC def locally as well, > > but whatever.. LGTM, thanks for the tweaks! > > Ah, I thought it'd be more readable this way from bcachefs point. > Kent, just let me know if you prefer Brian's way and I'll send v4. It's in my tree now :)