Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4055798pxb; Mon, 27 Sep 2021 08:29:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCK2pFN/NyBsFCFuq+VQ1erd2gLnPlQNxXW2YNBgpa452NpEk+MMPJ8zHTeTfuoD4IpGRf X-Received: by 2002:a63:f62:: with SMTP id 34mr229320pgp.159.1632756571970; Mon, 27 Sep 2021 08:29:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632756571; cv=none; d=google.com; s=arc-20160816; b=FG8uaFBaFIz4UHAK16cPdtuBNosf51TDSNwAMZVA2i27hYH5UvX7u/JrmmsIuoJoBQ 5J41EpOrxYTAy3Tr6qfPsQK8NSKr54fJstl40ehSS9JSPF+MHspidlOM/+dkyENKagOK JkIkTctiYIoRMF5nnl/uWgDeKtEp/TcnZP/fLusKt3DlozwOoGhoFaVV6bShl9/7Mqht ia/GRqijz1H2qcNZDb9eJ6ulpztocKWg2WTc8g6MuF9LRceDwm2QqLcT9DCwO4g5Y3EH Jw8TpP340vfECJ7PuVAj6NQXzc3vijlQ/fwLnx6RN2kLSU23KPFUMQEHB6NU80n9YEE7 lXAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=AIg9rkQY3+i/Vv+sIzG4WbPk6OdyngEjF1gtfZjJ8+s=; b=JK45STHf6V4iJOeUSuXA0DzGyD8icJq9I4FYh6EwCze/oYAnhwUoVRiLl4FsIBtNAo U0WSeQaquuGxffqLBr85z7pHVYwLsQH+Irc1O2evzE261rWONEKFnU73gFmQymfhX3b/ XMxbNE5vm3qBD9WIzQbvEfV28k7+1M+ft643RdrECJUrLt0vV2q9nT1qHmmvaCp1Znlg Vgjpi2IaJFM4iWNYlTqZDbC9yXRn2mmUwsEvSWj8dt66NyUZ9DKoMk1vIRNuu7BUkJ5h dthsZ0UVP9eg4VbZoYzEzMdTBOxFmwXEEQeCtLs8zVTJoAyQEzpADyTHJ2teVQ+1WRP/ x6ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paragon-software.com header.s=mail header.b=qsrEfgCK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=paragon-software.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e3si12154550pjm.101.2021.09.27.08.29.16; Mon, 27 Sep 2021 08:29:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@paragon-software.com header.s=mail header.b=qsrEfgCK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=paragon-software.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235261AbhI0P3T (ORCPT + 99 others); Mon, 27 Sep 2021 11:29:19 -0400 Received: from relayfre-01.paragon-software.com ([176.12.100.13]:43686 "EHLO relayfre-01.paragon-software.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235249AbhI0P3S (ORCPT ); Mon, 27 Sep 2021 11:29:18 -0400 Received: from dlg2.mail.paragon-software.com (vdlg-exch-02.paragon-software.com [172.30.1.105]) by relayfre-01.paragon-software.com (Postfix) with ESMTPS id 84D9B26; Mon, 27 Sep 2021 18:27:38 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paragon-software.com; s=mail; t=1632756458; bh=AIg9rkQY3+i/Vv+sIzG4WbPk6OdyngEjF1gtfZjJ8+s=; h=Date:Subject:From:To:CC:References:In-Reply-To; b=qsrEfgCKcU6HIP7LFP4aBhRaWU8ECfO69FwiEr56FyzGNj8u+kfv8QnaNVx9nkwkv k+7NFmsH1m6oxanKy/wA6gQDiA/wRAYiQDY02zapwQ5db1oCW/oksMgX6+ckbZhIlQ CyuOGxsISbtm4F7XmBdSy8i9MMEU5tRfGiBf6DtM= Received: from [192.168.211.27] (192.168.211.27) by vdlg-exch-02.paragon-software.com (172.30.1.105) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Mon, 27 Sep 2021 18:27:38 +0300 Message-ID: <543d770a-56b9-956f-9cd3-854172ebb725@paragon-software.com> Date: Mon, 27 Sep 2021 18:27:37 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.1 Subject: [PATCH v2 1/3] fs/ntfs3: Use available posix_acl_release instead of ntfs_posix_acl_release Content-Language: en-US From: Konstantin Komarov To: CC: , References: In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.211.27] X-ClientProxiedBy: vdlg-exch-02.paragon-software.com (172.30.1.105) To vdlg-exch-02.paragon-software.com (172.30.1.105) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We don't need to maintain ntfs_posix_acl_release. Reviewed-by: Kari Argillander Signed-off-by: Konstantin Komarov --- fs/ntfs3/xattr.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/fs/ntfs3/xattr.c b/fs/ntfs3/xattr.c index 83bbee277e12..253a07d9aa7b 100644 --- a/fs/ntfs3/xattr.c +++ b/fs/ntfs3/xattr.c @@ -475,12 +475,6 @@ static noinline int ntfs_set_ea(struct inode *inode, const char *name, } #ifdef CONFIG_NTFS3_FS_POSIX_ACL -static inline void ntfs_posix_acl_release(struct posix_acl *acl) -{ - if (acl && refcount_dec_and_test(&acl->a_refcount)) - kfree(acl); -} - static struct posix_acl *ntfs_get_acl_ex(struct user_namespace *mnt_userns, struct inode *inode, int type, int locked) @@ -641,7 +635,7 @@ static int ntfs_xattr_get_acl(struct user_namespace *mnt_userns, return -ENODATA; err = posix_acl_to_xattr(mnt_userns, acl, buffer, size); - ntfs_posix_acl_release(acl); + posix_acl_release(acl); return err; } @@ -678,7 +672,7 @@ static int ntfs_xattr_set_acl(struct user_namespace *mnt_userns, err = ntfs_set_acl(mnt_userns, inode, acl, type); release_and_out: - ntfs_posix_acl_release(acl); + posix_acl_release(acl); return err; } -- 2.33.0