Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp841818pxb; Wed, 29 Sep 2021 10:47:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtvqWokbZG937BpVqJeipg0UN/1ldGu37HYYqS0y2DkcRgu1P2REZ99kVacd9NpbQOP+1M X-Received: by 2002:a05:6402:34d2:: with SMTP id w18mr1462588edc.222.1632937623010; Wed, 29 Sep 2021 10:47:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632937623; cv=none; d=google.com; s=arc-20160816; b=LUc5CAXem89MKvoceCGYTQh/vjgxr2Z63TX4LMC4Bii5xYV9YEn6kUw5c+9UMPobH5 thnMnV9dYnFiGgzMvsTVJk9lRB4J3f6OuQc7jIlR8UgdaJ4UbqnZQw0WEcyCmFTVUP8v 1deAUZ1NaKMepEz2OgJPlpgvzpB3vZ8mZ+kkNuZg3tDgT4ktmgOeiwykabaNJFGgnq9o 3AKhfvpjKnK2RNLbd8t0p9u4ZTLB7M6qRspcOwkxZ6PbPsz9wiJSl5Nak2BkzFrCuAPl H1rwjB+mOKklS6UuDA+tqP7STF87oELSory/7V8cDW2a8GDDg4RqXDC/1QEfxmezymPh HeBA== 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=a+m2beNaAqzYp5ASClY/jhZxHpuJxZDjjRt3Fpf6FnGDeIsPSQ5ZuEK+zxncWmO0l9 EfRVSMJ5c4qDR6YFLTP9UH0CNo9jAkU9cnMM15Af5SnegGIYRV3WVEBQuQB3VtzlrAws 74Gvqvh9v1pJIyrEkGmbIIr86xcYen4rRg8XGl/XmobmLEb7TZDldp+P7XWH6mVEpipP NhnvlCBV2h44r1fpb2buQPQuLN3IEotTajSNVZ4cvaKrZCuY1UqwuUY0YRZvW2ChmX4E OFZ2PkzduCyPwFehbhmiSFzPirqHBnE6XVPh13Q7n7WigUWgfJPgF5t9Fx40aNxJzlLR TTGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paragon-software.com header.s=mail header.b="AR92/WPN"; 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 z11si617652edj.493.2021.09.29.10.46.38; Wed, 29 Sep 2021 10:47:02 -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="AR92/WPN"; 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 S245074AbhI2Qvg (ORCPT + 99 others); Wed, 29 Sep 2021 12:51:36 -0400 Received: from relayfre-01.paragon-software.com ([176.12.100.13]:54932 "EHLO relayfre-01.paragon-software.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243893AbhI2Qvf (ORCPT ); Wed, 29 Sep 2021 12:51:35 -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 E56DE439; Wed, 29 Sep 2021 19:49:52 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paragon-software.com; s=mail; t=1632934192; bh=AIg9rkQY3+i/Vv+sIzG4WbPk6OdyngEjF1gtfZjJ8+s=; h=Date:Subject:From:To:CC:References:In-Reply-To; b=AR92/WPNAWP1pd/PCqBveW5ZF9FXMmrG88Tr3SVenqkZA9mG4IPtdyGH3YrSCkA7C HUMFr2B60/UO8AEx4lP4Nz461e9jqHG5iAVwfE7gTtnqL/Dm/00d+bdQaKdetbjOhy epF2rBlP1IjeMAauapSBOEf2tgPgbOF0KiKrhIPw= Received: from [192.168.211.131] (192.168.211.131) 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; Wed, 29 Sep 2021 19:49:52 +0300 Message-ID: Date: Wed, 29 Sep 2021 19:49:51 +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 v3 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: <1514c7ce-9b2c-fc12-75c4-3b4cfd2639a5@paragon-software.com> In-Reply-To: <1514c7ce-9b2c-fc12-75c4-3b4cfd2639a5@paragon-software.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.211.131] X-ClientProxiedBy: vobn-exch-01.paragon-software.com (172.30.72.13) 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