Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3421540yba; Tue, 16 Apr 2019 10:59:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqyp2kJUxB15MYHQpUkjK2K2bgc3uXwTC4W0OK9F7YWzjBBwo4FyANrK96vz9ciNQfQxUeCW X-Received: by 2002:a17:902:525:: with SMTP id 34mr71958418plf.138.1555437556956; Tue, 16 Apr 2019 10:59:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555437556; cv=none; d=google.com; s=arc-20160816; b=P+/CGObOsyK0bak+MoTZGcw5r+WE/tLqQihsNE4wLW81eFHqb8U3x6Dla6VfjzUGKC jiAuMS1XsYuKpYimLCqxf7FVhA54ew8IYoOzzRi+32s5rDgwtc6s4AR57ACfvNP9ESdb upSibWVVJQ9Cb1rvCClKU9EvsgcE37mWUL72Mglgcr1XzxHBia0tWXAkii8BnJjeBRfK AuO7k3NWAP6oMi0fdl9/L2eeooAsQXMj0jonVvaY+VNF263J0l9D5GGXt8ikAWdWub1/ Mnr7VvZtcy5tbORMCiZyXcRXO2jYriUtZJn64Hcb1jePqQeArLbS+DX1VZavL1GQ7qGL 7UnQ== 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=S+PteZ9HRKaptGhQdT2rMOKPdhSlFVEpyonJ56pTwjA=; b=Wp84GraR190YhDD3wGxkve/Pgn5FQJfwgWE7/Exs0SxGMMzErv3vl9UCReMlaavAfr fbdGlp5cC8Evbm+Zij3UAzhNgzeesi1MJZs7LiKh0i25lIpzsRErEL1NLNWQlXG2LhjH tgGnbNnv2jNGajk4tgywoGGPv5OVNMFIUHfI8f9eISgX34VmsZQ0xT5kbhmqN+m9Unr5 MIR3lFPR1XQ25YNaasUkU2bCe5WwjPM5EUPD0IX2ywV4MYMy3LFljq3EXOBKkVfkZ3h3 oSnbeSzll8gqD4983DOVyiTWg3VbKTW7jPEe42THopU182fEq30mK3ASpwBUIowDPA4T nYIQ== 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 i24si48393268pgh.434.2019.04.16.10.59.01; Tue, 16 Apr 2019 10:59:16 -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 S1730749AbfDPR4Y (ORCPT + 99 others); Tue, 16 Apr 2019 13:56:24 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57660 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730317AbfDPRxs (ORCPT ); Tue, 16 Apr 2019 13:53:48 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92 #3 (Red Hat Linux)) id 1hGSHC-0005Yz-R5; Tue, 16 Apr 2019 17:53:46 +0000 From: Al Viro To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [RFC PATCH 45/62] rpcpipe: switch to ->free_inode() Date: Tue, 16 Apr 2019 18:53:23 +0100 Message-Id: <20190416175340.21068-45-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 --- net/sunrpc/rpc_pipe.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c index 69663681bf9d..979d23646e33 100644 --- a/net/sunrpc/rpc_pipe.c +++ b/net/sunrpc/rpc_pipe.c @@ -202,18 +202,11 @@ rpc_alloc_inode(struct super_block *sb) } static void -rpc_i_callback(struct rcu_head *head) +rpc_free_inode(struct inode *inode) { - struct inode *inode = container_of(head, struct inode, i_rcu); kmem_cache_free(rpc_inode_cachep, RPC_I(inode)); } -static void -rpc_destroy_inode(struct inode *inode) -{ - call_rcu(&inode->i_rcu, rpc_i_callback); -} - static int rpc_pipe_open(struct inode *inode, struct file *filp) { @@ -1123,7 +1116,7 @@ void rpc_remove_cache_dir(struct dentry *dentry) */ static const struct super_operations s_ops = { .alloc_inode = rpc_alloc_inode, - .destroy_inode = rpc_destroy_inode, + .free_inode = rpc_free_inode, .statfs = simple_statfs, }; -- 2.11.0