Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3421934yba; Tue, 16 Apr 2019 10:59:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqzKfpTKc9femSr77iPMSnE2x18BJvV91jJcZWzRy9FS2kScxvYKtOebhjSz0IhV3UBRIK+K X-Received: by 2002:a62:b40b:: with SMTP id h11mr84596515pfn.133.1555437585988; Tue, 16 Apr 2019 10:59:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555437585; cv=none; d=google.com; s=arc-20160816; b=09KG3TTdSRysIw6guOFGqM2IABLqUEBVZ6vqdlRoqpCv1ad89jlYs1heraViYyQpIy hL8fWtSQu9qdCeEzp9SxKDgkpmEtQo/EZ6qbHKh/EABj3wGv8Uvm+rqPcEwx0p+Qb85S aoGIpDKoRD0BQOo872sNFEXJX74eKuC0sDT+bSnP8qTNDGndeiBC4HX1JRZ5kILpOl1t ugUOJY5zDkQK5zc287CDViceT24vmkXsH5EYGkztV1QEgxXjQ1/dA8y+pr3tV7fp8dHa ByvPTzeiQkd5YPrdqlzdc8V/WJariOgjJjs7gNKaXdqMyXu6rGX+NocvxRRNLiptM/n0 xqmA== 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=i5A6emBoS5XYns8z1q4r6LrNYT5ksM8SQtpMhe7KSs4=; b=tl/JHhfqMbfUq9mDKu1AMwc5R4TmtV5MoEpYbpBAvNrJOao9a7P1L93CNzqR5ILJcD goZCHFGpDpr4U9R93v2SJJBBtdVt4GpasbHWOUH1Fl0SbkHmWIqNWJlIJ+tVB5GKVrRf ivG75jCGwKGSMyOG3K9Zc0FJUdzRACospWoXKJ58uv2EbX0KlExPYIyq9lUB0+PvbxvJ oz/AXnC6FCGwzx3p40QRkXxGgGNHVZW8qggF3a9+Rmbzwox+oV6xZDGjCDje6zdy2v9p RZwuAi7dODboYbTvtN16lMZX0180MgtCMSDhm5yCIN9usajQOcOGOIiBoOACjDj/kR0X J1Hg== 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 f63si51700727pfa.154.2019.04.16.10.59.29; Tue, 16 Apr 2019 10:59:45 -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 S1730714AbfDPR6k (ORCPT + 99 others); Tue, 16 Apr 2019 13:58:40 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57574 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730250AbfDPRxp (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-0005Wa-HQ; 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 23/62] hpfs: switch to ->free_inode() Date: Tue, 16 Apr 2019 18:53:01 +0100 Message-Id: <20190416175340.21068-23-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/hpfs/super.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/fs/hpfs/super.c b/fs/hpfs/super.c index f2c3ebcd309c..ed4264bca790 100644 --- a/fs/hpfs/super.c +++ b/fs/hpfs/super.c @@ -238,17 +238,11 @@ static struct inode *hpfs_alloc_inode(struct super_block *sb) return &ei->vfs_inode; } -static void hpfs_i_callback(struct rcu_head *head) +static void hpfs_free_inode(struct inode *inode) { - struct inode *inode = container_of(head, struct inode, i_rcu); kmem_cache_free(hpfs_inode_cachep, hpfs_i(inode)); } -static void hpfs_destroy_inode(struct inode *inode) -{ - call_rcu(&inode->i_rcu, hpfs_i_callback); -} - static void init_once(void *foo) { struct hpfs_inode_info *ei = (struct hpfs_inode_info *) foo; @@ -532,7 +526,7 @@ static int hpfs_show_options(struct seq_file *seq, struct dentry *root) static const struct super_operations hpfs_sops = { .alloc_inode = hpfs_alloc_inode, - .destroy_inode = hpfs_destroy_inode, + .free_inode = hpfs_free_inode, .evict_inode = hpfs_evict_inode, .put_super = hpfs_put_super, .statfs = hpfs_statfs, -- 2.11.0