Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3417924yba; Tue, 16 Apr 2019 10:54:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqz1t/tUpThHq1i3e6LkiMjxBF4eqbB0WWS18lHdEoKBSuHwEhajsg5JrqL7j0hGG/lQO7AT X-Received: by 2002:a17:902:1101:: with SMTP id d1mr66994272pla.16.1555437287331; Tue, 16 Apr 2019 10:54:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555437287; cv=none; d=google.com; s=arc-20160816; b=X3DE2qFGLd0BvqgIS5lvxzainYlesKDzUTuz2irU5Pix3Y7FXUmVVfD74kWyQSOSvR D7u8UA27EDLLXu9RsnuumOtxZye4U0CHiv6aBrmtb2g7idnNgxvF7QSmAhNPcI8i9pnO 2LYXBYix/g6Mmfda1hLdyHGjuMjUsa6tGa8HYnyBY4BiytCZxC0ARReze995OlbTxO48 d54PZ7iaCTOeqiChFz4zg1bF6KLKg1fNsyeS992F+U9P9jsZuuwcotn1w/um9YiZuNpB +hY387YIyqnms9FpometVM6zhLMOCREIKz+xMOV+o8rQihIsNROOVLziI3bZAtyxQ0Ad R3Hg== 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=UhIfyrcYU2Z5Hpf1HwqG3o+igjXq38AaSpi35oEl7OU=; b=n1/5qzr6kKns3THiDOC5O2gAMzeWn36Aoay+SCkZhJJpwrWzYTgZVh1GoKy8cOkYgn skzE8918kouSS4wygjKGDrLqIRh5d1HU+JpVrZziEU8wTFCiSkZDxYbudF2JvetqvYxt m7k45gGNTVMqLdU9ZsRRlgrzwOqv1eKwGupYupr6Zwn/Acc0xQEZhhntilU7cDRUVBQe 7hfzgon28H+MRzJTayDz7I4g1e+29rTKVApe+hWSjurDHwKh4HsNuaZC9+TQOD521ZJ4 +xDTnqaLeKcksryDTQ6vpLUnohOwZg8seXSKOcdQKlrso4ZQcTgAFrlxrviyDiDHVVdh rOsA== 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 v12si48870496pgh.303.2019.04.16.10.54.31; Tue, 16 Apr 2019 10:54:47 -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 S1728809AbfDPRxw (ORCPT + 99 others); Tue, 16 Apr 2019 13:53:52 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57498 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727647AbfDPRxm (ORCPT ); Tue, 16 Apr 2019 13:53:42 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92 #3 (Red Hat Linux)) id 1hGSH6-0005Uh-W1; Tue, 16 Apr 2019 17:53:41 +0000 From: Al Viro To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [RFC PATCH 04/62] spufs: switch to ->free_inode() Date: Tue, 16 Apr 2019 18:52:42 +0100 Message-Id: <20190416175340.21068-4-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 --- arch/powerpc/platforms/cell/spufs/inode.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/arch/powerpc/platforms/cell/spufs/inode.c b/arch/powerpc/platforms/cell/spufs/inode.c index db329d4bf1c3..c1a75216050a 100644 --- a/arch/powerpc/platforms/cell/spufs/inode.c +++ b/arch/powerpc/platforms/cell/spufs/inode.c @@ -71,17 +71,11 @@ spufs_alloc_inode(struct super_block *sb) return &ei->vfs_inode; } -static void spufs_i_callback(struct rcu_head *head) +static void spufs_free_inode(struct inode *inode) { - struct inode *inode = container_of(head, struct inode, i_rcu); kmem_cache_free(spufs_inode_cache, SPUFS_I(inode)); } -static void spufs_destroy_inode(struct inode *inode) -{ - call_rcu(&inode->i_rcu, spufs_i_callback); -} - static void spufs_init_once(void *p) { @@ -739,7 +733,7 @@ spufs_fill_super(struct super_block *sb, void *data, int silent) struct spufs_sb_info *info; static const struct super_operations s_ops = { .alloc_inode = spufs_alloc_inode, - .destroy_inode = spufs_destroy_inode, + .free_inode = spufs_free_inode, .statfs = simple_statfs, .evict_inode = spufs_evict_inode, .show_options = spufs_show_options, -- 2.11.0