Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3423243yba; Tue, 16 Apr 2019 11:01:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqzaCY1ZAkzigWbRxHyMdt0oT9t5YZEi5B1VOCCDCvlk8QuC7IWv3/k0lA0AtgXE+Bk35U1e X-Received: by 2002:a65:6389:: with SMTP id h9mr78398454pgv.398.1555437663833; Tue, 16 Apr 2019 11:01:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555437663; cv=none; d=google.com; s=arc-20160816; b=kt2FQi2zLcBjl9J15EjNwNdRGP9lqKKzUCHKZah5NhW/RquD0z26s8CuCunQi5/bIO VmPLXIcArZQzyFsYeWPPowpcGntuYsuHFwOZULQlZnrzQwGxNO0F5zKkjTo8msTjY6s+ B/gBMuT7kqfUmJYN3O88tZrtAyIzqybfIFLrqFTD/VNqgZOlNYb4fcyItks8O+hiaY9u aZOc3Q3EG/z6cMUNof7qkK5opLsKmA/U10rvXgVzyTkDUKv7XbM7JXTzPp+tP5cgzBGp d64AiLk5RpMPSwnTT7ks/9tmNFJK+4gecTOYOFeiHcr4N+ZRGm2JSvpH1fJ4bnGHCvpf dtUA== 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=ISonKd44kb1Up58ioyCBmLyBpX0rFOQonVKk7gM5Svw=; b=wJtlebfarvdvl90FPtHq/5jtBW3Fi6VFl7ZNPKbmT7oxWpUJFnSMpBo7lGRYz5JXoC 5YTOPNBmdgwd/SqF3VGmdhJ1Q60n1bWs6uxLblo65MTGJHZ+KjEIA63qX+uPtdkmGGjg 7pCcqrLezboAFa+dVDRScRhfve9Gx5buiYE52gDerR34M3ehiTek/Z5uiKCOl50R1tzj dHNJVRZ7TjMLmVR/DT2dThwK8rYLftXwZqlh+YhTHQPG8YZQWgP6g1zhHiGEkvjcOo9F fK2VlP4xtN+A84HEKp24wvxHg2HwZF8pqMLsCogX/uYxhL4lY+UrSsGsrhmeeuWcuLZM xpVw== 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 h22si43070642pfn.238.2019.04.16.11.00.46; Tue, 16 Apr 2019 11:01:03 -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 S1730822AbfDPSAF (ORCPT + 99 others); Tue, 16 Apr 2019 14:00:05 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57518 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726860AbfDPRxn (ORCPT ); Tue, 16 Apr 2019 13:53:43 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92 #3 (Red Hat Linux)) id 1hGSH7-0005VC-Qt; 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 09/62] befs: switch to ->free_inode() Date: Tue, 16 Apr 2019 18:52:47 +0100 Message-Id: <20190416175340.21068-9-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/befs/linuxvfs.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c index 4700b4534439..e273850c95af 100644 --- a/fs/befs/linuxvfs.c +++ b/fs/befs/linuxvfs.c @@ -44,7 +44,7 @@ static struct dentry *befs_lookup(struct inode *, struct dentry *, unsigned int); static struct inode *befs_iget(struct super_block *, unsigned long); static struct inode *befs_alloc_inode(struct super_block *sb); -static void befs_destroy_inode(struct inode *inode); +static void befs_free_inode(struct inode *inode); static void befs_destroy_inodecache(void); static int befs_symlink_readpage(struct file *, struct page *); static int befs_utf2nls(struct super_block *sb, const char *in, int in_len, @@ -64,7 +64,7 @@ static struct dentry *befs_get_parent(struct dentry *child); static const struct super_operations befs_sops = { .alloc_inode = befs_alloc_inode, /* allocate a new inode */ - .destroy_inode = befs_destroy_inode, /* deallocate an inode */ + .free_inode = befs_free_inode, /* deallocate an inode */ .put_super = befs_put_super, /* uninit super */ .statfs = befs_statfs, /* statfs */ .remount_fs = befs_remount, @@ -281,17 +281,11 @@ befs_alloc_inode(struct super_block *sb) return &bi->vfs_inode; } -static void befs_i_callback(struct rcu_head *head) +static void befs_free_inode(struct inode *inode) { - struct inode *inode = container_of(head, struct inode, i_rcu); kmem_cache_free(befs_inode_cachep, BEFS_I(inode)); } -static void befs_destroy_inode(struct inode *inode) -{ - call_rcu(&inode->i_rcu, befs_i_callback); -} - static void init_once(void *foo) { struct befs_inode_info *bi = (struct befs_inode_info *) foo; -- 2.11.0