Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3422608yba; Tue, 16 Apr 2019 11:00:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqz/hWlTuTJaD90K4+WasfFyV/6tEqdYU5rYkiBaec8YuJfotcYE//AcHLtw2+1oqZi8+dqY X-Received: by 2002:a62:424b:: with SMTP id p72mr65641280pfa.167.1555437629217; Tue, 16 Apr 2019 11:00:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555437629; cv=none; d=google.com; s=arc-20160816; b=OcYpm5fEmtl+0d1EECT8BOZYAR5MJW9k0SV4TS0Va4gElrzhhFNVsWshJjS1jeGDPv jG82EwT3FH7GvrAFAf6lV34eDbzi++/Iq1A4/PVUhOAozoeuVuuQqJu25gYtW09XmvVB Jnigwag/vDibBkmQVuO0OFdWAdIdw4iG8t+0C+L6HUM5tLBCUFP+pGTg+j6LxEi9MF6X t0gMfM4HI+8lo98AjdwXgWK866q2E6UpNpSDtSi8alPJpBr0oRN8wTmRahlZzeuH0+83 Uo4IH5QdhG2bavU0w8lw4Z+KO+hFHgrg4RZpJt9AntH+O8AzOaLqimGR7nyf1SO3OR07 FsGQ== 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=B1OTgyRPOUV5TDZU1QarNoixNJ1xlIq4m8T6Kb91Mkw=; b=vbP0MztEOhpWSgICZszeRVkMUpwJ9jTuP3BN8BsW+k/qYpaFnfQGvn6qH3EXEAY9Lf KO5jD/opS28ON01ZLzOyN2/DJaB+EMH7n4vtC9FLXgEvec2XdpHTyU8UsBY1HqVB9pkg K3wNrub0obJvtmN1G4l3/MN3qeQMVdeBpR35t1W5m08OC7d3Xw9NMhsuOhuhh7PloRVe vUfxN1YLvATNSFBmnVybnTaFgSYGUc3QhsOnosQ4kY95HDCe4cQox/bwnjwz/z34X8pD iJ3mR+6w5VPsYhNblsLrFr+6muVKXuC1dTtl3wtmDxI03m2iEFUSjK7/T42ud+Q71iZI JUBA== 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 s30si48289967pgk.5.2019.04.16.11.00.13; Tue, 16 Apr 2019 11:00:29 -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 S1730550AbfDPR72 (ORCPT + 99 others); Tue, 16 Apr 2019 13:59:28 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57550 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730232AbfDPRxo (ORCPT ); Tue, 16 Apr 2019 13:53:44 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92 #3 (Red Hat Linux)) id 1hGSH8-0005Vz-Nj; Tue, 16 Apr 2019 17:53:42 +0000 From: Al Viro To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [RFC PATCH 17/62] fat: switch to ->free_inode() Date: Tue, 16 Apr 2019 18:52:55 +0100 Message-Id: <20190416175340.21068-17-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/fat/inode.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/fs/fat/inode.c b/fs/fat/inode.c index 79bb0e73a65f..ba93d1373306 100644 --- a/fs/fat/inode.c +++ b/fs/fat/inode.c @@ -746,17 +746,11 @@ static struct inode *fat_alloc_inode(struct super_block *sb) return &ei->vfs_inode; } -static void fat_i_callback(struct rcu_head *head) +static void fat_free_inode(struct inode *inode) { - struct inode *inode = container_of(head, struct inode, i_rcu); kmem_cache_free(fat_inode_cachep, MSDOS_I(inode)); } -static void fat_destroy_inode(struct inode *inode) -{ - call_rcu(&inode->i_rcu, fat_i_callback); -} - static void init_once(void *foo) { struct msdos_inode_info *ei = (struct msdos_inode_info *)foo; @@ -920,7 +914,7 @@ EXPORT_SYMBOL_GPL(fat_sync_inode); static int fat_show_options(struct seq_file *m, struct dentry *root); static const struct super_operations fat_sops = { .alloc_inode = fat_alloc_inode, - .destroy_inode = fat_destroy_inode, + .free_inode = fat_free_inode, .write_inode = fat_write_inode, .evict_inode = fat_evict_inode, .put_super = fat_put_super, -- 2.11.0