Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp200992lqb; Tue, 4 Jun 2024 08:54:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVXYZ8ixXp5gIW/1VpSS40DdjksfTVuqRmHp1o1jHLj8VFQdC8lNPt5FcHyF3aEbY/I/toxP910tGMzqvsWKLAuGKgj0+yryoknTk1A5Q== X-Google-Smtp-Source: AGHT+IGFKXu0udD0kmpeU3puiDbOcxSS74f6WTm32ka7tMAyao4SO9JGL/c4yPs+JDx5LCaVk9pA X-Received: by 2002:a05:622a:1316:b0:43e:34ea:80ef with SMTP id d75a77b69052e-43ff52a080amr128635011cf.23.1717516455869; Tue, 04 Jun 2024 08:54:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717516455; cv=pass; d=google.com; s=arc-20160816; b=xZBcUE5W0D2Y+zZJV4JPGHate6nFUpPH/Sn5HlHNY4LVyt8NX62J2cICP5aKaTosBA m8x8X2lj2wBiasHL9yyd9qJKR5pO37SSYCqaVV19pV3jRt3MCmDosu7+u1M5Ak5qsAry KOBfszR59qYXunU82qRyhTBEkVlddzmIyUCC9WtWbT+PrU1aUa+QTbMBPK/A8HNx5O4D 7h7WxZnk+U2R9qq6KVv8lIZLVDKPqcm6dnVKtUfHqP1hRdEyRq4MZ21XUq56PCIdFAHH MO2EedyRrr5H0AejweGXdI5dFYw/7MbZDgu6bIvlNam/5xMKkD47dIYkMlUPd/cGcNXd rJXg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=aLWnc7JHma6VN/R7uX8zeGLyZqDO4slq0l0l53iTXbI=; fh=zVRtPUPrECykxhBNOAkDOnDGSnaGDGPe97G9w41k8mk=; b=DNsdQRHKSbuunL19gt5hHSu6SE/XO5j4YYRftiq2Npx3bWGhNbxehDOhz57djeWNmP aGdcaE91xHwVxplkUBzDa3GaUAf+gHvZC3fweoNJj6mW5xQd3YEDr2TrlJlsz7H8VQC3 9Sart/2Fm6HElnzz8uYh1fYKrJ0cND0Pvi3yjq3dl558kr78G0Wv2BGgwAb7fM3zP/Ka rcxzy9Wy4y2F9VPpP0FhZOz5kB2aPe94LIBiI3JtRsQUpy9tRng+4oWYcs5xXYA3ZoBg YHjxDDGakPkIXTjzAHx5aLuCqhEXYjmtm55Y7o32sTI8nWM0lrz1QXJd3zu3u+u5aKLL pDIA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=HdIqqpH7; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-201009-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201009-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-440282a516csi7779511cf.304.2024.06.04.08.54.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 08:54:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201009-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=HdIqqpH7; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-201009-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201009-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 8FBCF1C23F4F for ; Tue, 4 Jun 2024 15:53:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 158AF146A87; Tue, 4 Jun 2024 15:53:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="HdIqqpH7" Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B4FC9946C; Tue, 4 Jun 2024 15:53:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717516394; cv=none; b=rz1rwWvY9vA6RBF7sR+XqwHmPrs7YVuKY7hzr3RPgxSCqWmyQ2TMBHF064hdis1z7PdbuGVidQ+wJQ1vpKuK8i7tG6qKf5EO25A4X3oB6DrhR3EWSMVN1RxxWOu99s3f2116VE7Vwyi+6RvG2hyO03nRU0kAeu0sguP2Uc3rS7w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717516394; c=relaxed/simple; bh=aSzmxffLT7xQZWhpjpSVznQm9u7RY3I60GUWBZuzKb4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HSFgrPckardychhDLI4Jg+sJ7FgjIKt5lOXMtdLnQ5YbtDpTMoTO+E4z+HN03zo/UL8q/pu0z8YamIY+6+QhTQzu6uZ9YW3B86iRFYv8Qk1suod4GFMM28oxrB7A7QEUETSEENvJM0qF2y7u1eveNpeCQGr6y/hqOI+GRYuGzpQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=HdIqqpH7; arc=none smtp.client-ip=209.85.208.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-57a677d3d79so3767144a12.1; Tue, 04 Jun 2024 08:53:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717516391; x=1718121191; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=aLWnc7JHma6VN/R7uX8zeGLyZqDO4slq0l0l53iTXbI=; b=HdIqqpH7HV3Kkc/62R7E36BZz39krUl3EcMsn2qSbc+HTTWLE4IGx8YvgG+LhV8y/f yawCwGK+ebJbQbDvEsttrux8neTxp2BRsq1OmA5hMxi6z6+48anc9xtq0DaMTk2xSCKa wUGSW/uHAc2gW+MdJ2uMWgZhMiW4kxkIGZilhpvoM88i3UY3lSjw3nJGF/cnJ9LHrbeK LbRYSNu/UFvfos2KifXp1sVPpsHdSlAVhT06GM5It1k6ur67Dfsd0ySTHpxVl9U0ntlj lceymvz9ebzG92NdrNsRG00FoHK88oZeOEai6A0GaIZUBIM0FuJYPOllgK8/C7oYHNKf /RmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717516391; x=1718121191; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=aLWnc7JHma6VN/R7uX8zeGLyZqDO4slq0l0l53iTXbI=; b=TUzgdFwgUJM1NYWiXbWU4A9TUUGEg0fVZxytqzasO/7B9t27PMkBaBpspXhFZkcsDu NIfpfe/50RZ8A5MK25lBrtrQmNRSPBoZR+pb5I4iEUTlTQFylQ/Nwvl9k5KINcI1sWDA mG2ih8IFVpZFdCciwU8/2k/dM1j8qfbmXxbuDt9LqWfj0wOY7fAE8NSa/Tz9GRGmJ3eW U7UQDEZgxcBzamBsLjLoFDuBzYkCfvLlVEnUQ0R9Ntsjma46OSU1SH+rAovRwWyUvyaO 97s+dNMW1Qo9LTSXZDjy6VlHYVFEAU6MNbudx24JvWsYHgMK0dqvWsjPuvdegiDFSZlk Dknw== X-Forwarded-Encrypted: i=1; AJvYcCVu9ntlWrNpVtsmfPnAAsZFeLz0rlpSxQAdS5DWS04gbroaRy0sPv2FjB73Uf7czW6ghKJkxXkc4APGFF14j8bUvan5GGm4IRaisMyOWOSauLPR6XiQkT6SNFtsP/EzCjJ+6sVLhRHq23m4Ag== X-Gm-Message-State: AOJu0Yyg31h/O2/PUMfjlwG+twM/DuYJ3+EC10NlSiU+wWONtUHaG7Ab CT8TxRioWvka6G4VGE/3wTxIPADyJF0tiODpFXqxOj04XeHosbAn X-Received: by 2002:a17:907:8f0a:b0:a68:f43c:57dd with SMTP id a640c23a62f3a-a699d63f681mr2013266b.23.1717516390844; Tue, 04 Jun 2024 08:53:10 -0700 (PDT) Received: from f.. (cst-prg-5-143.cust.vodafone.cz. [46.135.5.143]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a68e624db7esm423380066b.66.2024.06.04.08.53.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 08:53:09 -0700 (PDT) From: Mateusz Guzik To: brauner@kernel.org Cc: viro@zeniv.linux.org.uk, jack@suse.cz, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Mateusz Guzik Subject: [PATCH 0/3] whack user_path_at_empty, cleanup getname_flags Date: Tue, 4 Jun 2024 17:52:54 +0200 Message-ID: <20240604155257.109500-1-mjguzik@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit I tried to take a stab at the atomic filename refcount thing [1], found some easy cleanup to do as a soft prerequisite. user_path_at_empty saddles getname_flags with an int * argument nobody else uses, so it only results in everyone else having to pass NULL there. This is trivially avoidable. Should a need for user_path_at_empty it can probably be implemented in a nicer manner than it was. 1: https://lore.kernel.org/linux-fsdevel/20240604132448.101183-1-mjguzik@gmail.com/T/#u Mateusz Guzik (3): vfs: stop using user_path_at_empty in do_readlinkat vfs: retire user_path_at_empty and drop empty arg from getname_flags vfs: shave a branch in getname_flags fs/fsopen.c | 2 +- fs/namei.c | 41 +++++++++++++++++++------------------ fs/stat.c | 47 ++++++++++++++++++++++++------------------- include/linux/fs.h | 2 +- include/linux/namei.h | 8 +------- io_uring/statx.c | 3 +-- io_uring/xattr.c | 4 ++-- 7 files changed, 53 insertions(+), 54 deletions(-) -- 2.39.2