Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3423391yba; Tue, 16 Apr 2019 11:01:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqw7lGbzdBGFeSAOyTJYEv/q1d89XboEaUmNYQIsgbtKmIX2Is63m33xBnnz0YX6X20ZULXf X-Received: by 2002:a62:6086:: with SMTP id u128mr84653390pfb.148.1555437672766; Tue, 16 Apr 2019 11:01:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555437672; cv=none; d=google.com; s=arc-20160816; b=dA0c7kXEHs8S5qs8xy0DiyijGJZE1UmFZKSfX2xO4GKElTqMvwSq4yhUVF7Dv2jlWb 9agnB8ylFkGj+Ry3GwxHmCoU+XNF8WfpMt0kCdzPEGyv0yvk6f613ynr9Wp4sRRdk/3S yZgAkfwkk3LlOUKDXsxHPTUMiDYqp/HhSotp7yLqYxcutbQms6JQabJIwYSyeVswKe1Q dlr6Pk6pNH/p1cOZBF8D+g8JLEsKTp/cIQEPN8vz9ALVKgbltAble3zwsIDw+ip6fsMn DpmgFgqYCb6DLklSpeKsg+SDuAmH46LPiJ1h2Ynlt15ZodQLV2bdBEfmQkRLVPw1vpdN rC6g== 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=3s0OObzo2uKEE+BhT636lw0amAfStMKH97hwOOUqfA4=; b=rn40yS0UbolPLsGU3eG4sNkSAleovJmI188+Redp/HhVvAT6elxhMZ7wfKB/o1tIpp Jv9GYu7zDEDYVqyyuy8uPRmarLdEHgeo3XxIch9HQBaE1nBgj7tSDWM0YZ47ndjrjzCb mQYsfTV8ySuID4ETfassaTcaXXwFAImjyFE7eygCT7QdpqRFx96sXF9eGTeQgPZG68vV VDF8ZxBt3e4pQAZuqsBgsb6vDl99oQLA+Tf8Dxd/exVzq1C5kI/Lolsn91ItzFHTJvnF ta+8t/ID2y2MHsLWFuHu7Ohvuf6Eggajlio2xx7PTPURtSmch998LOgB9EA7Xz36ldyd XH0w== 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 a6si48522716plm.62.2019.04.16.11.00.53; Tue, 16 Apr 2019 11:01:12 -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 S1730422AbfDPR6x (ORCPT + 99 others); Tue, 16 Apr 2019 13:58:53 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57568 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730248AbfDPRxp (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-0005WU-CJ; 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 22/62] hostfs: switch to ->free_inode() Date: Tue, 16 Apr 2019 18:53:00 +0100 Message-Id: <20190416175340.21068-22-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/hostfs/hostfs_kern.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c index 444c7b170359..5a7eb0c79839 100644 --- a/fs/hostfs/hostfs_kern.c +++ b/fs/hostfs/hostfs_kern.c @@ -243,17 +243,11 @@ static void hostfs_evict_inode(struct inode *inode) } } -static void hostfs_i_callback(struct rcu_head *head) +static void hostfs_free_inode(struct inode *inode) { - struct inode *inode = container_of(head, struct inode, i_rcu); kfree(HOSTFS_I(inode)); } -static void hostfs_destroy_inode(struct inode *inode) -{ - call_rcu(&inode->i_rcu, hostfs_i_callback); -} - static int hostfs_show_options(struct seq_file *seq, struct dentry *root) { const char *root_path = root->d_sb->s_fs_info; @@ -270,7 +264,7 @@ static int hostfs_show_options(struct seq_file *seq, struct dentry *root) static const struct super_operations hostfs_sbops = { .alloc_inode = hostfs_alloc_inode, - .destroy_inode = hostfs_destroy_inode, + .free_inode = hostfs_free_inode, .evict_inode = hostfs_evict_inode, .statfs = hostfs_statfs, .show_options = hostfs_show_options, -- 2.11.0