Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3419521yba; Tue, 16 Apr 2019 10:56:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqx14LmmIgAYwjnH/60tgPUhnq0yht3nwP9cZQzhewf/RcIKn+IvZ++g84gkuMZ7twygM892 X-Received: by 2002:a17:902:7841:: with SMTP id e1mr82663035pln.303.1555437409095; Tue, 16 Apr 2019 10:56:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555437409; cv=none; d=google.com; s=arc-20160816; b=Nv1UImEuQzSkOxS+6HKr+ajPU2NqGAcyAtBYH2xYXQVWz0EbQWn2a7yZiY7sIq91XH ixGU+4qn2XKXQG4LMbTiQDM4iLRIuDqaNU2+YXenGq/ZoW1ObtrUlVKBXb2JiV2LvPdO vLdKnz6MaR5/Ta+xI6FtSTF7zNvVn0c3HkWdedYEwxc7jkPMRycOMSNG7fjin5mIc+nb +YJ2KWcj3g2FSY++bEYOLP/+5nyf0pnMZVqkpQgQg8bXobK4+8t4cW/ouTFyZvqMoThZ 2y5RgPPK20DliIql3CX1UHiR0eAk8Xltq8NJajakmFPecdYTnjAvOU8XZD6JFcTDq7Hw D4Lw== 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=cx/VruoCXkxgpG+LaNGF7qbMdDGBAC1U8S8lsvZ9J60=; b=fVm80j8Vq04tz4CLQpoY6XFYcTA3tC2JxeyDQ2+cbGW12fxWHqhVHaDQD+Q0lNUVan /9BOtfgRjVdHwswVvMYi+Li0HiQ1mYlcnQW06fv7qRe8o+PuiiJQB5UXYSDn+HiKcUbI 4txezlQHX7XA4/Wo5YtYogo23QTMm/C9cXzvAh96B/2T1cglYqtY0Y3redysmyC+RfaS 0QctRwksiegPwu8/M1od7XWzsospVTLERzvDofHy54a4a5HcbAGmX3CB4q8SbZY+UwrP 7H8D1vqKWIcG/f68MaiaNgEJ4qfuFphd3UyWdA3Mwq69TdM4pXGlJDUi7zDxQrcnRcz4 GF+g== 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 j24si44487580pll.286.2019.04.16.10.56.33; Tue, 16 Apr 2019 10:56:49 -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 S1730380AbfDPRxt (ORCPT + 99 others); Tue, 16 Apr 2019 13:53:49 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57506 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728373AbfDPRxn (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-0005Ut-CC; 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 06/62] 9p: switch to ->free_inode() Date: Tue, 16 Apr 2019 18:52:44 +0100 Message-Id: <20190416175340.21068-6-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/9p/v9fs_vfs.h | 2 +- fs/9p/vfs_inode.c | 10 ++-------- fs/9p/vfs_super.c | 4 ++-- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/fs/9p/v9fs_vfs.h b/fs/9p/v9fs_vfs.h index aaee1e6584e6..60cd4ba04afc 100644 --- a/fs/9p/v9fs_vfs.h +++ b/fs/9p/v9fs_vfs.h @@ -58,7 +58,7 @@ extern const struct file_operations v9fs_mmap_file_operations_dotl; extern struct kmem_cache *v9fs_inode_cache; struct inode *v9fs_alloc_inode(struct super_block *sb); -void v9fs_destroy_inode(struct inode *inode); +void v9fs_free_inode(struct inode *inode); struct inode *v9fs_get_inode(struct super_block *sb, umode_t mode, dev_t); int v9fs_init_inode(struct v9fs_session_info *v9ses, struct inode *inode, umode_t mode, dev_t); diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index 72b779bc0942..24050e866e64 100644 --- a/fs/9p/vfs_inode.c +++ b/fs/9p/vfs_inode.c @@ -253,21 +253,15 @@ struct inode *v9fs_alloc_inode(struct super_block *sb) } /** - * v9fs_destroy_inode - destroy an inode + * v9fs_free_inode - destroy an inode * */ -static void v9fs_i_callback(struct rcu_head *head) +void v9fs_free_inode(struct inode *inode) { - struct inode *inode = container_of(head, struct inode, i_rcu); kmem_cache_free(v9fs_inode_cache, V9FS_I(inode)); } -void v9fs_destroy_inode(struct inode *inode) -{ - call_rcu(&inode->i_rcu, v9fs_i_callback); -} - int v9fs_init_inode(struct v9fs_session_info *v9ses, struct inode *inode, umode_t mode, dev_t rdev) { diff --git a/fs/9p/vfs_super.c b/fs/9p/vfs_super.c index d13d35cf69c0..67d1b965adcd 100644 --- a/fs/9p/vfs_super.c +++ b/fs/9p/vfs_super.c @@ -344,7 +344,7 @@ static int v9fs_write_inode_dotl(struct inode *inode, static const struct super_operations v9fs_super_ops = { .alloc_inode = v9fs_alloc_inode, - .destroy_inode = v9fs_destroy_inode, + .free_inode = v9fs_free_inode, .statfs = simple_statfs, .evict_inode = v9fs_evict_inode, .show_options = v9fs_show_options, @@ -354,7 +354,7 @@ static const struct super_operations v9fs_super_ops = { static const struct super_operations v9fs_super_ops_dotl = { .alloc_inode = v9fs_alloc_inode, - .destroy_inode = v9fs_destroy_inode, + .free_inode = v9fs_free_inode, .statfs = v9fs_statfs, .drop_inode = v9fs_drop_inode, .evict_inode = v9fs_evict_inode, -- 2.11.0