Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3421351yba; Tue, 16 Apr 2019 10:59:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqy6VYsqbrfSAhF7f4suPMTeY2VgkZrGxH6pwsoEOcOr3FQAloej/5kMgCl4ZlO6lIzDPXrc X-Received: by 2002:a65:60ca:: with SMTP id r10mr725635pgv.64.1555437543079; Tue, 16 Apr 2019 10:59:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555437543; cv=none; d=google.com; s=arc-20160816; b=zpedqJmaBxf9HdSzvw41/Ymlcs3h1P9X/QvDM9zYrROIhQb/0/qoxCEQHAtAtEp7Tu wr5YkbD433yLvl9Mk6nE3pmoIxaBSUbkFRbOHXCIEq90JBc3MG2pCz7sYyvxdWxysu5m +/IjFnMtD+X9DSRYLtE6FdpSPs0+gkGcKAv8aViaFm1npEsf3MafrYKO/ZuuCQIo0X1i 840U+hTMH39lJaRhZlWDi9kgcSw6rpyd7LJfA3uvYozR2eCOFk1+447AmXCpz5HNP7cL lg2fyJGPitmgac/x7igxHQ7XPNrJddZZasBHlpbRjWavCF65k+lEO0AlQOGV05by49gM AlAA== 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=DGnZQgJT+d31m322X0Sy7jxYMXIYqQNdtR6KN6WgVQs=; b=Zrv3K1mhQp97VgdgD4IlO9YOHbV78qqvkRhhuId81FX3HkFjj3gB0Hjlxvpn1yiJkN zQG/M0vQVpaXPJ/qQo/7zpJa0VI24EWFEmVAF4jvKeek5/oTtaZEKkS1FRCCGZTit6eV nkhexFNEXcQ3qxCreoRAq6mUIkkfMOgFgzO4rElKhyet0PXOGFzKv213/iYyTmKU+wZJ xtHlvtWC9M9kguwQQgvydGEiYsjdkxf8zbSKE3IShan0Fj/cOwfa5E//OjrJlJaixXD4 pUpSdfdABAG5EYhyjDmamhZYmkQpzvmvwuXNBLCpfIu4VeMUKWM6PRX2NGsHjfw4Pe22 qDag== 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 y2si47636947pgl.527.2019.04.16.10.58.47; Tue, 16 Apr 2019 10:59: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 S1730761AbfDPR4n (ORCPT + 99 others); Tue, 16 Apr 2019 13:56:43 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57646 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728478AbfDPRxr (ORCPT ); Tue, 16 Apr 2019 13:53:47 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92 #3 (Red Hat Linux)) id 1hGSHC-0005YY-5r; Tue, 16 Apr 2019 17:53:46 +0000 From: Al Viro To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [RFC PATCH 41/62] coda: switch to ->free_inode() Date: Tue, 16 Apr 2019 18:53:19 +0100 Message-Id: <20190416175340.21068-41-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/coda/inode.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/fs/coda/inode.c b/fs/coda/inode.c index 97424cf206c0..23f6ebd08e80 100644 --- a/fs/coda/inode.c +++ b/fs/coda/inode.c @@ -54,17 +54,11 @@ static struct inode *coda_alloc_inode(struct super_block *sb) return &ei->vfs_inode; } -static void coda_i_callback(struct rcu_head *head) +static void coda_free_inode(struct inode *inode) { - struct inode *inode = container_of(head, struct inode, i_rcu); kmem_cache_free(coda_inode_cachep, ITOC(inode)); } -static void coda_destroy_inode(struct inode *inode) -{ - call_rcu(&inode->i_rcu, coda_i_callback); -} - static void init_once(void *foo) { struct coda_inode_info *ei = (struct coda_inode_info *) foo; @@ -104,7 +98,7 @@ static int coda_remount(struct super_block *sb, int *flags, char *data) static const struct super_operations coda_super_operations = { .alloc_inode = coda_alloc_inode, - .destroy_inode = coda_destroy_inode, + .free_inode = coda_free_inode, .evict_inode = coda_evict_inode, .put_super = coda_put_super, .statfs = coda_statfs, -- 2.11.0