From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (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 72AA923A6; Thu, 20 Mar 2025 14:12:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742479929; cv=none; b=fnJoAkOpyCChlX7wUjumTx5dJPvWmfA5uUv+ZD5a7IdISsjFdm44WzadN6+kDCS0tk7EiyFqhY/MQTJbMrzCZ2yWpwQAkm1R0LNvJFbS4VfsZhPtFPrpU3us+iyeBfcDukSCOjdF+MaQUpeHWC89qbOQRgnKtI5YV1zXmojS9dg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742479929; c=relaxed/simple; bh=46cyrVALgIwl5K4rEkc+kbFDQZxmipOxlZOKz2dY5HA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=snHy4u00/xLj3lBm5GP+PW+FyDwSIW1P7I5SZCqK+79OH0IQwrb+t1Qk/vUVEPuufKiSTpRka8pyAOLhXkynRunM7+WbyFTnx0sfZWsszGkZkwJ6LoeGe1fK2WHyuvrvgBZ5JPaODoOD1ywa6fmq9REhx1vO8YoGMv+4nGcKKAg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 4A83568BFE; Thu, 20 Mar 2025 15:12:01 +0100 (CET) Date: Thu, 20 Mar 2025 15:12:00 +0100 From: Christoph Hellwig To: John Garry Cc: Christoph Hellwig , alx@kernel.org, brauner@kernel.org, djwong@kernel.org, dchinner@redhat.com, linux-man@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org, ojaswin@linux.ibm.com, ritesh.list@gmail.com, martin.petersen@oracle.com Subject: Re: [PATCH RFC] statx.2: Add stx_atomic_write_unit_max_opt Message-ID: <20250320141200.GC10939@lst.de> References: <20250319114402.3757248-1-john.g.garry@oracle.com> <20250320070048.GA14099@lst.de> 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: User-Agent: Mutt/1.5.17 (2007-11-01) On Thu, Mar 20, 2025 at 09:19:40AM +0000, John Garry wrote: > But is there value in reporting this limit? I am not sure. I am not sure > what the user would do with this info. Align their data structures to it, e.g. size the log buffers to it. > Maybe, for example, they want to write 1K consecutive 16K pages, each > atomically, and decide to do a big 16M atomic write but find that it is > slow as bdev atomic limit is < 16M. > > Maybe I should just update the documentation to mention that for XFS they > should check the mounted bdev atomic limits. For something working on files having to figure out the underlying block device (which is non-trivial given the various methods of multi-device support) and then looking into block sysfs is a no-go. So if we have any sort of use case for it we should expose the limit.