Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3418845yba; Tue, 16 Apr 2019 10:55:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqxrHyE4lyN6Gdvc3WDHK53eyLsRxHPT3Zpws7vXLxj+UkpWiRFafDLrGeM4iz88TsGA8HzW X-Received: by 2002:a63:1918:: with SMTP id z24mr74394119pgl.406.1555437357972; Tue, 16 Apr 2019 10:55:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555437357; cv=none; d=google.com; s=arc-20160816; b=brLG+QYrr0Y+oJfETD+B378Y24F4G8edfdhV4eXrV3L6+v+Yh1ZDiI+RtCmEp7PIRB EHz8jaGYyw5P3qL/NFv6eoGM3bbfhdj6BnWb2sHzJEBe0mknbAR+Q67MLiaSJxvTRmiF +1MdObDcWj8kokDmHWxsEwpiQfiUizgVVP+p7N4PLVK30tnwqxrwIQuYwIe+ozWnDgtj SZKlS2OaX7DET06yTcFtaB8dYJsAzFpsZXJBNER3p8MpoT/ft5jrfx2W06lzzNerMVvD 0dp81f3KNK6JxvJwmlR9MuSeuZazwGeR54Dq/w39ft17eGonY1IN2QimQk5ax/afeUsQ /sCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=IOojkaZwcO5ETuVuvUGEqG1C1r3hoRbp79/9Bj4uaks=; b=eE4Bta2HJ1cxX/vhQybq4JVzi/kgNZLXV62A9zl980ZIvsHhWPlw3FkjD00FCDuYlf mPpNG3P5712BSWp6GNgo/+fAFtU5AjpC2Pn5cT2lmLXoKxt8/vqgKhWa/tlfMAc0+v/a VIhr/MGuHwHNDcgY0FaneduktCZD1/GLzMv4QrTSxwRtCECLXGUu/YcudAKzGmNKrT4C UOo3S3xmxOBx2MbHrZCEp9ApgvBbNHo2NPfBPThIZuaExFv5+eIUujDkMhMh/igxybD6 EMI0rETlzD3PqgmfA71Kz8fd0FIg+Wd15HByXJPHZhAr+vEbtwEggB+sV+nLN+F4qp9c THYQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m32si12385376pld.309.2019.04.16.10.55.42; Tue, 16 Apr 2019 10:55:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730423AbfDPRxx (ORCPT + 99 others); Tue, 16 Apr 2019 13:53:53 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57566 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730247AbfDPRxp (ORCPT ); Tue, 16 Apr 2019 13:53:45 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92 #3 (Red Hat Linux)) id 1hGSH9-0005WO-8G; Tue, 16 Apr 2019 17:53:43 +0000 From: Al Viro To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [RFC PATCH 21/62] hfsplus: switch to ->free_inode() Date: Tue, 16 Apr 2019 18:52:59 +0100 Message-Id: <20190416175340.21068-21-viro@ZenIV.linux.org.uk> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190416175340.21068-1-viro@ZenIV.linux.org.uk> References: <20190416174900.GT2217@ZenIV.linux.org.uk> <20190416175340.21068-1-viro@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Al Viro Signed-off-by: Al Viro --- fs/hfsplus/super.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/fs/hfsplus/super.c b/fs/hfsplus/super.c index eb4535eba95d..0cc5feff76cd 100644 --- a/fs/hfsplus/super.c +++ b/fs/hfsplus/super.c @@ -18,7 +18,7 @@ #include static struct inode *hfsplus_alloc_inode(struct super_block *sb); -static void hfsplus_destroy_inode(struct inode *inode); +static void hfsplus_free_inode(struct inode *inode); #include "hfsplus_fs.h" #include "xattr.h" @@ -361,7 +361,7 @@ static int hfsplus_remount(struct super_block *sb, int *flags, char *data) static const struct super_operations hfsplus_sops = { .alloc_inode = hfsplus_alloc_inode, - .destroy_inode = hfsplus_destroy_inode, + .free_inode = hfsplus_free_inode, .write_inode = hfsplus_write_inode, .evict_inode = hfsplus_evict_inode, .put_super = hfsplus_put_super, @@ -628,18 +628,11 @@ static struct inode *hfsplus_alloc_inode(struct super_block *sb) return i ? &i->vfs_inode : NULL; } -static void hfsplus_i_callback(struct rcu_head *head) +static void hfsplus_free_inode(struct inode *inode) { - struct inode *inode = container_of(head, struct inode, i_rcu); - kmem_cache_free(hfsplus_inode_cachep, HFSPLUS_I(inode)); } -static void hfsplus_destroy_inode(struct inode *inode) -{ - call_rcu(&inode->i_rcu, hfsplus_i_callback); -} - #define HFSPLUS_INODE_SIZE sizeof(struct hfsplus_inode_info) static struct dentry *hfsplus_mount(struct file_system_type *fs_type, -- 2.11.0