From patchwork Thu Oct 27 07:43:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ondrej Valousek X-Patchwork-Id: 11630 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp89562wru; Thu, 27 Oct 2022 00:49:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Zp3fUX5GPfjeJwUGdt2auGqWT6r1JJspv9ytJRQ9yQFUzG4z+cqYEXTLfsJNBfhrNMlRU X-Received: by 2002:a17:90a:4607:b0:202:e22d:4892 with SMTP id w7-20020a17090a460700b00202e22d4892mr8457789pjg.220.1666856961753; Thu, 27 Oct 2022 00:49:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666856961; cv=pass; d=google.com; s=arc-20160816; b=cKuze/2TJqwLSbn8gNe6gqZL96Z5zY+k5AVrvA63Bhu05gBDxh2IFYgqV2ki5dHoB1 5gdO+WBETMKtx+A2Zw+6+0z7cwnUKbNs6ijlgqcVvKbdkW/LzPketx6bGKCBmu2NnWpP NMJsBJ5Dg3/zIxiH1OvUa3v2722KuQ/2tvGESKeAQDeduiOQIV5rSJSyZ64Y0EtiCYWY f/DYkBYz9H0gnXDvnp8wpI64fKLtk/0pOz4ILv3A1FQmsgwyqGvcPP4HSYhNr17LRIE5 7JlJuzGBK3HRlQyqu/MRRe+cVgzEK3cWRVYM4u8EgqWCTGhuTCq6T4t9mZV+81r5WmTq bSkg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=2hHLGaICvW2LYZ/AO+OXnJXjOfVIUPTv7F/lH22tXFg=; b=WKk3pXL+ViOw7P+ZeNwWFWnreBVvhgTn9YDAKe9dx6p4ixCG7ec+G4kYgCEUkFrKTS yQu6kRTtpS0yiJwPanL6NanF2tNUCROExwn7Tz3VzUvwJXFB0V/3su4OlPwYGtYfjlWg eelRii7tXIwH1wcn11KhG/xCafrsfkvDTiH8lSUo3Ib97n7zjkNOecpLRubyHLjJXeiC 7JoYoU0sxJFIvyU1ikEP15PpWgtE88ehrdDEHqX8fe7XOOTfJWP+g9W7Zso7rM4RaXRU wZBYJCtCwQfCdE8iQS1DB9JIjyveUJOshuU9unpBUQSle+OZxP1LNZkTG9R/2n+LxOFd 02PA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@renesas.com header.s=selector1 header.b=CPFJYcJv; arc=pass (i=1 spf=pass spfdomain=renesas.com dkim=pass dkdomain=renesas.com dmarc=pass fromdomain=renesas.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=renesas.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qe13-20020a17090b4f8d00b001fe280041e8si1117433pjb.37.2022.10.27.00.49.08; Thu, 27 Oct 2022 00:49:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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; dkim=pass header.i=@renesas.com header.s=selector1 header.b=CPFJYcJv; arc=pass (i=1 spf=pass spfdomain=renesas.com dkim=pass dkdomain=renesas.com dmarc=pass fromdomain=renesas.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=renesas.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233865AbiJ0HoE (ORCPT + 99 others); Thu, 27 Oct 2022 03:44:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234829AbiJ0HoB (ORCPT ); Thu, 27 Oct 2022 03:44:01 -0400 Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2120.outbound.protection.outlook.com [40.107.113.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 533223121C; Thu, 27 Oct 2022 00:44:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=h76Fr8lEqJfb2AtJ/SwR847MiMw2XQHI/99btnrEFAcJHCJzEZ8qJLx/LfdDVcQ2m7Mw1GH9rjutulAol01yN/YnEtmA4T0nE0e03wmlcXbLuLQItwBfgDRzzbSUavv1YsZ8+PIDfLglFCVdQ7x8Hjj7DvOt7LJWWBiLdGroQ6/5z/b2CB42D+8sVzgDsEqs/Jrygp9wD7wjfa8JpqRUq2UpLCHhRYMehyPItOkU5HyYAcfBLhueTvJMmMG9rmMefA06QUH4wfcpoI9xei4taIwxTimA6CHLWa7apLVXLeZRKHoKo0EJSCu7atMqo5jean83wrzS40WG5xeDD0BhOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=2hHLGaICvW2LYZ/AO+OXnJXjOfVIUPTv7F/lH22tXFg=; b=CP1rCdxVR0BFlUvYMzx0tF7iwnvsK0P98UF6NERGjNwdBcuSfChBwbfJzfAc9Kn5IvkdvzQ0iX4EB947ZSIpwUxSgih8gUlf7yFuQkcNMGBAAviGtlkvzQIFTQcPeiCYT9blwnv7JkpBFfGN0fOB9WIXdZAeqwNKGaHB+Cu1VDlczfSJBt3TqBF1yDQYAzFm0jExcQTySQAHbaE8tlNV/jmnTTv3hunP0t79icEfrAitMy/Yo8QNnIRuYHS3eWX6/tIXUnqAlNs8NvsKv1UiB9Czxxg9lYSz2sj+PCduUBHORoeiprfRPGXLGRznRAqpMi6b8JIcG+ZQNosuVZYZGg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=renesas.com; dmarc=pass action=none header.from=renesas.com; dkim=pass header.d=renesas.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2hHLGaICvW2LYZ/AO+OXnJXjOfVIUPTv7F/lH22tXFg=; b=CPFJYcJvyvAhroL7g2+gz4ESyW+bGyCO7lGFT4ZwVkOrjfCzdDlgukcXTNPRj/aJIm3WVcnvNYH+F5oILn4OvFb64tvdOF0cQT4JslBmBM2H118n+WNNsq6H7Aupwt6hYydzQdQn5Vc2zkGr2Nw3m41FX1uecfVAas5poCcyoDw= Received: from TYXPR01MB1854.jpnprd01.prod.outlook.com (2603:1096:403:d::19) by TYWPR01MB10307.jpnprd01.prod.outlook.com (2603:1096:400:1d5::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.26; Thu, 27 Oct 2022 07:43:58 +0000 Received: from TYXPR01MB1854.jpnprd01.prod.outlook.com ([fe80::7c26:5a68:d3dc:3ba4]) by TYXPR01MB1854.jpnprd01.prod.outlook.com ([fe80::7c26:5a68:d3dc:3ba4%3]) with mapi id 15.20.5746.028; Thu, 27 Oct 2022 07:43:58 +0000 From: Ondrej Valousek To: "linux-kernel@vger.kernel.org" , "linux-nfs@vger.kernel.org" , "trond.myklebust@hammerspace.com" , "anna@kernel.org" CC: Chuck Lever III Subject: [PATCH 1/1] nfs: Move ACL xattr definitions to linux/xattr.h Thread-Topic: [PATCH 1/1] nfs: Move ACL xattr definitions to linux/xattr.h Thread-Index: Adjp191PvyyHwERbQa6sSzLdPAGESQ== Date: Thu, 27 Oct 2022 07:43:58 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: TYXPR01MB1854:EE_|TYWPR01MB10307:EE_ x-ms-office365-filtering-correlation-id: 659e2900-4372-4544-e122-08dab7ef01da x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: o2x7j6gd1B+G4vbItm9/BJ6MJqEsKdUOtHdEqW0dgRRkPBOUsvcBMh9aYEGGMcevEZjAxdqx1Urw9tFRFi2zbBd3C8eYRAfp+az1fXiEgLfwNG+/M+9b0FX8zHGYJXKc2p0bKc4Eigu+8jFsmTLEXNWqMJSCvXYnZw0wgbHmwYnkX9nAWZKzmGyXfRwK/nDa8QkYc4ng5bid0CJEEnKqQBCbOQ2igKi9aBUU2C5FPdvujuvknxCwWXJjiDHWUJKLIP8rh4z9Bzke+SZsIe4mqxxskIkSWYymYnK/sNsZVo8TSZ2scnwNkc5gKY3++/P3NHb8ATdQfmirygg4yi5It26XeoZnCmTexJ9I/2u5TlGEgtChMnQ2mfR9BQtI8HDEFVJJtS+fSE28Q8/G4HKeHWN3/Oz6BFLRPhySpSYTQDfZRIeCRulWy5AUB269qAN1iRrPzSCfVkOrijRNmhuXqc1v+Wb5BwTHk0dS996Yac0gkl8pYdWdkOBfXnqVB9ArxMTBHnBf52T3yEJeK5bNrcQ6vMrnZBmsGhkFMJlWu20iRJCBJR7E2OKW0lVnza6S53FVwFEUFYwsfx6JRsDlFHpU251peST4KL6Ar0RMTwxWOemo2+zEahnFhjM7KVIxKMOw/DHIGGkMQwOy9i7szLEovASbXoXYifNLL3MAClb0VZ+YzHW+avzR9fkST2ZKzWn5zMB177AaZALFzuRVNbjFVmgxJLdWvujGfS4Z6IxDFQMI302wY5ppehQ9+LWgqZt/DRQfH+w74VosuW8R2Q== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYXPR01MB1854.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(396003)(376002)(346002)(39860400002)(136003)(366004)(451199015)(52536014)(26005)(33656002)(478600001)(9686003)(316002)(6506007)(7696005)(8676002)(71200400001)(110136005)(86362001)(38070700005)(38100700002)(122000001)(55016003)(83380400001)(186003)(41300700001)(8936002)(2906002)(66446008)(4326008)(76116006)(5660300002)(64756008)(66556008)(66476007)(66946007);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: GwHeuwe4TJHLMrcLYMcmc80uGpXm8OzQiIp8s5cmGDFRXhmAAviyzkiL/JASlDiEheIVliwYom6pgoRWFjG7F7ppWkKVqHoMj9AkNo04ULWb/RbfU+3LhQjdMTQkhZwAmMUuD4Y2QEPJVtSTLZpo9qyYU00ZhznM1/gdzOtzRJJemQ/tqfaZdA2jjIkst6f1Fb7KzC+pclkKs2mFGxbtjErJBkGHJaBUE2Tip+DSfQmm4Riz9RkDvd6rGR4PwJnOwxwZI55tcUJ+wVeF2gNu+Wl5rVG3z3x9BUUJMkFU2WXBpJZsMFkzCNk/vO8Mp0NKhLIIznJBi2Jpr1iKwKl/dMN3P64IEuU9qY5WXV1JpI2buii9qHYC6jLcHUJgu5xagRnfnqeLxKQL/ifN9b2XJJyqcPCg6KjoJzKotwexA+tTKYe3QLBGObLj78tohnGF97B58Yr4uzcHXLU/MzQUzB7awO+JPaQIyQ/NGzmcP2oJlV0xv6GS6Z0ERJhZLkFF+QjvrBybXYDMHiwGf/ExmgKp8464BVi5TxEkrRfBreKOqHkKhzMTcaQztachWFHV5o0iS8vkLoAVAyDHtZmU61R8hUpYiUvNDkNghxpaA9DYqao2KtBLDkSnB/uKJ+OZigXURTotTQc0OZkosRadCKPgaeQTrEvpIz1nC7NEMpYJUmNLldCp0wwxLUY9x+ASO62m/DcwPFn/mNImDVjHGyilhIFZXbgiuoLxtcVirfVDBjegJloPxT+3vOM288S6LYHlhi2N97PrBaHTsUBslIqml80Y/FJnsAJ/TG1Fgx9AKowF77/LHzMhQqXKvgwHKBw+1sZwBNI3GCexGGwg89+13Ok93ahCzBgnOr3tWmANAKd7fNPDoQyKoAagTgnpZZy4Ki7rgPlzN0gKUW+LPulvnsgEcxPu/hIK43ACfxvSEk/cvzB3tUkIf1AalJdwbSRZifWn+UM7m4sR48u3e58iFUmAbGyzJdyKzGCc+K+T1LLA2zIXVSgbUSOhTx8LC9MNfOBpHm9BrdIkRYvRwQuX7I95lkF4w2/lRfOT+uHEeUUzIgakLndPqS09dX/RSxAJGWiYkhxywBvp23zH3jXPeatYCazk3wgj1ei5tbhidqDZTwxv2wugMKrmQaMIWrmxhlfhnGIcYXeuwBK4ZWOlic/JrT8Pk2QH3eC1TyYNreRjA0b7P7dAXXbJiljOOIrA2oE4VlE+iuolkSTMatnKE+ug2isxISpTL031RAevpK60b79/EEaxOR6MXyBlUALhW/qRA5O4HQK9FuTGS5aKkDiPf/OkMuR7r+ApqywFTMtMzeGw5KMuLb0dukOCh8Z+tb0wMHCh4g8HOh9R8HlptRQ2AmZu3P2in6TbnW0M6cSWAp6fQbCEeQqT+UT+pwfKdeBxgQ9zep18mq1U3ZDBCkv71XuF9fsyShdmLBF42KjiGy/0CDyzcnGCDgLhLVAzG1gOkVPdrKZzKWfo8TTKIQql85XT56d9SoeoPflXSHZQeqf+PXlC4Q2vpeVT+mu4FKiU+RUoOIrvSWSmL7pBopRSoL/9dNwZi6cn9FDlqGO354H9V9t/ED3ifKI5a7tZrIfGqOyEGbv5oiaiXw== MIME-Version: 1.0 X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TYXPR01MB1854.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 659e2900-4372-4544-e122-08dab7ef01da X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Oct 2022 07:43:58.1910 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 1VFjtys2S9WYS4QOngRQ9S5byEXOHiKBypxKxifM84sLZ3wE3H8D9Uku8TOWFI1csnMkG7j2BFWZVwrZv8gcUTAWFVgPj1kz0BV2wS3AW1g= X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB10307 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham 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-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747826205329677857?= X-GMAIL-MSGID: =?utf-8?q?1747826205329677857?= Hi kernel maintainers, Please help to submit the following patch into kernel --- Signed-off-by: Ondrej Valousek 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 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 */