Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp327674rwi; Thu, 27 Oct 2022 01:36:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5SX2eHbYiGpwduj6sVH6ZBGZq3yrdEE+ClHSb6ssq6ipMnmi39HFNmDmieLEVNE6TdAWhA X-Received: by 2002:a17:903:2445:b0:186:daeb:bc09 with SMTP id l5-20020a170903244500b00186daebbc09mr8921474pls.31.1666859781719; Thu, 27 Oct 2022 01:36:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666859781; cv=none; d=google.com; s=arc-20160816; b=Bibl/3oIiFI73ObpauTdm39WngR/13uX4+EdUcZr30JuaikrNTYw2LeHH5KlmImTUp 2Zuy1bzwwFWwFPVkft4cocnbwKHeDHL4Hie2m96XFNL5coVAT69bSoUCvJfVIXn97j0W yD2ABPXT8BKpmNJqbQSIvusx40V0oGDTASK8V3nLglIXstodI5e9UFEmYzUDr7rHm3a2 LYCs2EEW/Kng9+wpGNcM/klb/yAMKXckF2Mp+1AGN/UApCf419sZydPK1CpTDDCJD9S/ T9j4wjBeCneWf/+G2FNMtBfvECno0HhVOI9Opboqlf5Nql14z0zDf45JD2se0vDku04k sBwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=LGR82K2SrDiTH5yPrB2h1PID22uGtUcZl225x2F/vmg=; b=u6EUc3/t1LkfGdFsPxld7a1Ii8qeLTfVHycWcEG/eedOyFQGvwFmfaZUBRNYpI0B6y 3WjEae1/PkbjXmWNI7RL9Ak+AKkyDztqgfMP5dVCxKUtqFKokvoVNE7ObIeGzz1TuvoR qSJqvyH/YhhHDTKKLLkvlxUn/78IjAucVjsiLQ0DR0PyVInhaI8kKpuyE2N1yVEDxWYH pyhOyOIAd4USPVHjtEDJZ0+rOZwFDFJfvQhJK9G6ksPfcw+WHeDSv1GLYBiHMlroSsbq 5WB50rf3e/4Jw6xCLNz2Y9irbkciAlgjsS0bExKQeL7/4Ib9t/UPvJeoe8j9eQe7A6r0 h1Kg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e3-20020a17090301c300b001787f1922a7si1164556plh.19.2022.10.27.01.36.00; Thu, 27 Oct 2022 01:36:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232844AbiJ0If5 (ORCPT + 99 others); Thu, 27 Oct 2022 04:35:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234504AbiJ0Ifz (ORCPT ); Thu, 27 Oct 2022 04:35:55 -0400 X-Greylist: delayed 599 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 27 Oct 2022 01:35:53 PDT Received: from haproxy.adestotech.com (haproxy.adestotech.com [217.163.77.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D13838B2CD for ; Thu, 27 Oct 2022 01:35:52 -0700 (PDT) Received: from skynet19.adestotech.com (unknown [192.168.129.19]) by haproxy.adestotech.com (Postfix) with ESMTP id CD74FA154A; Thu, 27 Oct 2022 09:18:50 +0100 (IST) From: Ondrej Valousek To: linux-kernel@vger.kernel.org, linux-nfs@vger.kernel.org, trond.myklebust@hammerspace.com, anna@kernel.org Cc: chuck.lever@oracle.com, Ondrej Valousek Subject: [PATCH 1/1] nfs: Move ACL xattr definitions to linux/xattr.h Date: Thu, 27 Oct 2022 10:18:16 +0200 Message-Id: <20221027081816.812452-1-ondrej.valousek.xm@renesas.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Short description: The XATTR_NAME_NFSV4_ACL definition is also useful for userspace (i.e. nfs4_acl_tools/libacl/coreutils) so makes a sense to move the definition to the linux/xattr.h Signed-off-by: Ondrej Valousek --- fs/nfs/nfs4proc.c | 2 -- include/uapi/linux/xattr.h | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index e2efcd26336c..07c3d8572912 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -7680,8 +7680,6 @@ nfs4_release_lockowner(struct nfs_server *server, struct nfs4_lock_state *lsp) rpc_call_async(server->client, &msg, 0, &nfs4_release_lockowner_ops, data); } -#define XATTR_NAME_NFSV4_ACL "system.nfs4_acl" - static int nfs4_xattr_set_nfs4_acl(const struct xattr_handler *handler, struct user_namespace *mnt_userns, struct dentry *unused, struct inode *inode, diff --git a/include/uapi/linux/xattr.h b/include/uapi/linux/xattr.h index 9463db2dfa9d..77eb8c885861 100644 --- a/include/uapi/linux/xattr.h +++ b/include/uapi/linux/xattr.h @@ -81,5 +81,7 @@ #define XATTR_POSIX_ACL_DEFAULT "posix_acl_default" #define XATTR_NAME_POSIX_ACL_DEFAULT XATTR_SYSTEM_PREFIX XATTR_POSIX_ACL_DEFAULT +#define XATTR_NFSV4_ACL "nfs4_acl" +#define XATTR_NAME_NFSV4_ACL XATTR_SYSTEM_PREFIX XATTR_NFSV4_ACL #endif /* _UAPI_LINUX_XATTR_H */ -- 2.37.3