From patchwork Tue Nov 12 20:25:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Al Viro X-Patchwork-Id: 13872922 Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [62.89.141.173]) (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 4003821A6ED for ; Tue, 12 Nov 2024 20:26:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.89.141.173 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731443177; cv=none; b=OMgXgVGc3DBR5t7Hj6bD0HHOXiglFjUwk3C/Uf3Q13MWNvjzXO/WOEz9zXiI30ml6RjZTwdfb3RjP63ZkFZI/if+vRmBoClFcWN6cwadmIRXUAqnNCwIaUpmifyuhfJk4ezo7EniNCSgw6H9Jla0H9m8QYi3Y2JYbzIIiRfypTk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731443177; c=relaxed/simple; bh=d2624VP+ywx7aipu3azEcZrx5rNuDSsnLqE/FtB7nYU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UHgvo4h76FprFAdloUyU7YsxMYbMQb2fVo5CqYI4IRu3Ad3RUsQc9DtLLb62sSfci1321eNgYQtXxzHi7pTcWmnObeGsEPofxXGDNQqgbBiQgF/YteuKSFWeSMPDlAKk2tnch6StzC0oz+cF0bkLgGBaQQzne2LwWP9iV4ZEX+E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zeniv.linux.org.uk; spf=none smtp.mailfrom=ftp.linux.org.uk; dkim=pass (2048-bit key) header.d=linux.org.uk header.i=@linux.org.uk header.b=f7A0grTP; arc=none smtp.client-ip=62.89.141.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zeniv.linux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=ftp.linux.org.uk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linux.org.uk header.i=@linux.org.uk header.b="f7A0grTP" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description; bh=dD3C7cqJbiEbgx0ZXFHOgSog1NfLueNrI1Gl4rNE99s=; b=f7A0grTPGGMMkClxq89mJAzyET F5R1qT04IG42vGu3Icc2sWtZd/fUj4nWdtduawjBsj97RLPGXtcD8/aqy3mLWDGdcYYMuqIf/csbA u5Z4hhgKty7ud7nQsWm9+lFxcbZxFFqdAJjIDp8cJSEpLcmSzuvs54yGf9jdLtuPXpEJ4SBeApGIq E6VNtMpznC5fVNNu+taV76IwWrUtQDfwu9SsrAINjXTdePvx4kthwdijGRVyXfqdRlRsnQUev5DEM h1naDAyYjyxut+V5WJe4RqAP3iokrWr8z+9nPT48bTTtsDXSEr5SLOBJCseDSoUc+hM85GbKsSgHu K8kNSllA==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.98 #2 (Red Hat Linux)) id 1tAxSn-0000000EEsp-1zOB; Tue, 12 Nov 2024 20:26:13 +0000 From: Al Viro To: linux-fsdevel@vger.kernel.org Cc: viro@zeniv.linux.org.uk, Christian Brauner , Jan Kara , Jens Axboe Subject: [PATCH 1/5] io_statx_prep(): use getname_uflags() Date: Tue, 12 Nov 2024 20:25:48 +0000 Message-ID: <20241112202552.3393751-1-viro@zeniv.linux.org.uk> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241112202118.GA3387508@ZenIV> References: <20241112202118.GA3387508@ZenIV> Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Sender: Al Viro the only thing in flags getname_flags() ever cares about is LOOKUP_EMPTY; anything else is none of its damn business. Signed-off-by: Al Viro Reviewed-by: Christian Brauner Reviewed-by: Jens Axboe --- io_uring/statx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/io_uring/statx.c b/io_uring/statx.c index f7f9b202eec0..6bc4651700a2 100644 --- a/io_uring/statx.c +++ b/io_uring/statx.c @@ -36,8 +36,7 @@ int io_statx_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe) sx->buffer = u64_to_user_ptr(READ_ONCE(sqe->addr2)); sx->flags = READ_ONCE(sqe->statx_flags); - sx->filename = getname_flags(path, - getname_statx_lookup_flags(sx->flags)); + sx->filename = getname_uflags(path, sx->flags); if (IS_ERR(sx->filename)) { int ret = PTR_ERR(sx->filename);