From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from xry111.site (xry111.site [89.208.246.23]) (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 8CE85188CD1; Wed, 3 Jul 2024 18:48:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=89.208.246.23 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720032528; cv=none; b=VNMMTcthECs+6ybaId/ttg5WVSfzqsMExYV2NpDiNCNSvB+YeYa6LKFjSsCjr2qOWzD2t0Ghrfk3UTub3f1ds0zn+lTgkIX9rcrgFSbYMUj5lW+3MicBn4nHTDRGV0tcaM0m54g97w21Id59X/VT6xYv1uMbMhUhmItI+Cr6OWo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720032528; c=relaxed/simple; bh=1UeOixBnqwCS2PCW7+/Bxiux1FjH7BQbeXhlLcGA6t8=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=KjKMMqFvRZKBJn2l5D37WXg9fE6F9V9Di27B7a6vXFs8feKwAmtkUprNatUP7i1ftiEB5CYgHDvc3hUwqjv4B4PMySoDjRI6GI3b70uzJp6OofkhWfF/iZmBM5HZszkMyCWUQjxuqRn+0P0t7BcBzy5zNUdxhW2VIId6PdwAPRU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=xry111.site; spf=pass smtp.mailfrom=xry111.site; dkim=pass (1024-bit key) header.d=xry111.site header.i=@xry111.site header.b=BBQhst6x; arc=none smtp.client-ip=89.208.246.23 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=xry111.site Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xry111.site Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=xry111.site header.i=@xry111.site header.b="BBQhst6x" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1720032523; bh=1UeOixBnqwCS2PCW7+/Bxiux1FjH7BQbeXhlLcGA6t8=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=BBQhst6xCRvTKTbLholr9TJQWBj3kLOJ1AxcoFJT3cfa6FvU6GHmfbaWtddmGSvqv 3C1snKtnd4kekwFxQoGWyNXWbOSIWlokN6UNupwu2YwbZ0uoLjuJMOOZqZ670wNAy4 g5Wn2tYubk1vjXGtpQyjHZprFNFQbQdUDIu+dhpI= Received: from [127.0.0.1] (unknown [IPv6:2001:470:683e::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 8751A1A40D4; Wed, 3 Jul 2024 14:48:41 -0400 (EDT) Message-ID: Subject: Re: [PATCH 2/2] vfs: support statx(..., NULL, AT_EMPTY_PATH, ...) From: Xi Ruoyao To: Linus Torvalds Cc: Christian Brauner , libc-alpha@sourceware.org, "Andreas K. Huettel" , Arnd Bergmann , Huacai Chen , Mateusz Guzik , Alexander Viro , Jan Kara , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, io-uring@vger.kernel.org, Jens Axboe , loongarch@lists.linux.dev Date: Thu, 04 Jul 2024 02:48:40 +0800 In-Reply-To: References: <20240625110029.606032-1-mjguzik@gmail.com> <20240625110029.606032-3-mjguzik@gmail.com> <30907b42d5eee6d71f40b9fc3d32ae31406fe899.camel@xry111.site> <1b5d0840-766b-4c3b-8579-3c2c892c4d74@app.fastmail.com> <8f2d356d-9cd6-4b06-8e20-941e187cab43@app.fastmail.com> <20240703-bergwacht-sitzung-ef4f2e63cd70@brauner> <8b6d59ffc9baa57fee0f9fa97e72121fd88cf0e4.camel@xry111.site> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.2 Precedence: bulk X-Mailing-List: io-uring@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Wed, 2024-07-03 at 10:54 -0700, Linus Torvalds wrote: > On Wed, 3 Jul 2024 at 10:40, Linus Torvalds > wrote: > >=20 > > Oh wow. Shows just *how* long ago that was - and how long ago I > > looked > > at 32-bit code. Because clearly, I was wrong. >=20 > Ok, so clearly any *new* 32-bit architecture should use 'struct statx' > as 'struct stat', and at least avoid the conversion pain. >=20 > Of course, if using like loongarch does, that is > very much not what happens. You get those old models with just 'long'. Fortunately LoongArch ILP32 ABI is not finalized yet (there's no 32-bit kernel and 64-bit kernel does not support 32-bit userspace yet) so we can still make it happen to use struct statx as (userspace) struct stat... --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University