Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1669058pxb; Fri, 24 Sep 2021 09:20:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNkEpZXhfPsRkyBLEgd15/NBG6c7oAM2bRZbBdAXU12cSU7cH8W14ewWiz8rOcbzMdcGlk X-Received: by 2002:aa7:c952:: with SMTP id h18mr6005838edt.18.1632500411576; Fri, 24 Sep 2021 09:20:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632500411; cv=none; d=google.com; s=arc-20160816; b=VqsDMMuf2jEdzv0IeiQ3LuNYAIYiRy1mAeDv+aF66F1rJZA/acJ7hhT4KqBNdQBq1N mMA5iT7Mj/OPjnF+w5K6T0FOrJ5oobOfBxa/tcNeHdqzYVFqUGnZT7itT3QWPHbX3wRX 2niu21hg3mZJEHSNYENzLHpmqbRSanwZb+GSrTBnmxL4qs23Rcam/Phlh9fQ4LBedpvu H1tTNl2LXI4UHLmU3cepOg9+x/97nZ3izcZefjUFWd3ewdmekpI2QdbeGpuAO+Yqq401 revDVpvKBfFgiV5gXlsk238kKjCz5vO07T1qh1+QyDVUT+JqsU4E5in8hMZkEyvKRvPn W7fA== 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:cc :references:to:from:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=8+bhTt5T0IhlM9asCO6uLJk9m4HR7Kuysrl7ri2mQvM=; b=NaeohD5k/dipj+NqOvFHn7MYAqvvXkDuhruEj/HEnXWlmv9ZSO1zWf9O93t0aLDqB+ o8cx78csOEyUdfA5LZX46YsQOj7v4BhNRDics2uwwp66I37a7q/kybchXtsD1Q8605b6 7OOM9aaP//Yvubw7b4J/nvM5sb/L+9cd+u0t8ZB0hk+xh1ZUSrhnYIx9kPUz0S8PSAQZ VSewVPqEzYkPCgC1VJzingAIQsPfAcDVmlDFpkeEP7oJj9V817FUgVKeEbY5i88CPxzE lLW+htfdB07BDbMclV73GgQU1+Y97ysLt0SQdwVUymYewlo0T961aUloy9UEODJ+w2vI k1kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paragon-software.com header.s=mail header.b=foWBnYaz; 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 g15si9047576edf.622.2021.09.24.09.19.41; Fri, 24 Sep 2021 09:20:11 -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=foWBnYaz; 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 S1347282AbhIXQQe (ORCPT + 99 others); Fri, 24 Sep 2021 12:16:34 -0400 Received: from relaydlg-01.paragon-software.com ([81.5.88.159]:37063 "EHLO relaydlg-01.paragon-software.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347306AbhIXQQa (ORCPT ); Fri, 24 Sep 2021 12:16:30 -0400 Received: from dlg2.mail.paragon-software.com (vdlg-exch-02.paragon-software.com [172.30.1.105]) by relaydlg-01.paragon-software.com (Postfix) with ESMTPS id 8BAF482359; Fri, 24 Sep 2021 19:14:54 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paragon-software.com; s=mail; t=1632500094; bh=8+bhTt5T0IhlM9asCO6uLJk9m4HR7Kuysrl7ri2mQvM=; h=Date:Subject:From:To:References:CC:In-Reply-To; b=foWBnYazmlnsDAdIpqIkbe9o1LbpTCiDYiZKBh7PF1s/rjYXwzIoxkYPmiIVdoJnH EXBTV0AnGj/ZR8olFtC9njpb3iouEFJdXWOe56/bQ2SFRNdjZG4bhPkeKoJy7EcNpf sA0f9AFeh4pN4Ze71+hBM59jHgWbh3gwYAqTR/8I= Received: from [192.168.211.101] (192.168.211.101) 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; Fri, 24 Sep 2021 19:14:54 +0300 Message-ID: Date: Fri, 24 Sep 2021 19:14:53 +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 1/3] fs/ntfs3: Use available posix_acl_release instead of ntfs_posix_acl_release Content-Language: en-US From: Konstantin Komarov To: References: CC: , In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.211.101] 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. 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