Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3423688yba; Tue, 16 Apr 2019 11:01:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqylGcTJomvtop/xkL2CvSOQuBhpHE5T1r7SKdv8yAMSMUjK6eFHITOWd2EaDLVQLALbGBTN X-Received: by 2002:a17:902:121:: with SMTP id 30mr49180362plb.174.1555437691667; Tue, 16 Apr 2019 11:01:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555437691; cv=none; d=google.com; s=arc-20160816; b=eeRG57Sf9rdYJu+GoxzuLFsOwlyI8n740UMYtjQqtPaH4Rr8tjAbBSknx0SJbetwpD 2KCWKKfUPpx0m/HmGtAaXUKCnM4jaHNGXKRc65WGAAEwJnAv8w8yHohlzikyDxNQRW5Q COdfeYypOE+3d60yxKLg6Qz8YFtADP1uKlpaJqNkxxtjITstWe2AYsKJxBI0uziuIYNf 7Fh4D5TBOXOJNRBu0AksVBcneDwBC1dZxmGA9EwZpM7AR7KvFFf1hAZkMOROiYvvBkjh LU9Q5KgusmfF8y3nlwuPM1SqJ6tIt7Ijj3B52E3pKnARQwVeVLnnXWTm/IcmyV/Oo9nE AYWA== 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=rDzWvEOXLGo2JSof3Buq/dwPS6yeGan4AKmYjJgnfbw=; b=kVdgVWKcMQe+auSp22lZQDklbqOgM4jFgtmesqpnxSFbKTDDZL5YoeD4bQtIBQRDB6 mh4f4T09AIDggldpYyOhVVDm3ma2CNC5AcxUtPUDgNzq2PMgldO7+SCyMm5BG7Ucpigb PKONXYbPqPx7stytds17HNapmEF9fDR0T/3ivaPp/o/io835rtfbuQUkzONh0frFD+Zp TryAD3ETQpnvmwFt4Z8b9+ladIz29zDXfS1IS5+TbvBzcWu0YpmXckqoO089goTCeIdW Ei9oJBhniusm/xd8y4ye/HNaKZUrOyTiKfiqSl9vpncBo4v+ZNFKMtBIxXbiUwCYFJx8 bXCA== 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 d14si48494933pgb.26.2019.04.16.11.01.13; Tue, 16 Apr 2019 11:01:31 -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 S1730670AbfDPR7A (ORCPT + 99 others); Tue, 16 Apr 2019 13:59:00 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57530 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730226AbfDPRxo (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-0005VU-Ao; 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 12/62] cifs: switch to ->free_inode() Date: Tue, 16 Apr 2019 18:52:50 +0100 Message-Id: <20190416175340.21068-12-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/cifs/cifsfs.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index a05bf1d6e1d0..877174761efb 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c @@ -315,16 +315,10 @@ cifs_alloc_inode(struct super_block *sb) return &cifs_inode->vfs_inode; } -static void cifs_i_callback(struct rcu_head *head) -{ - struct inode *inode = container_of(head, struct inode, i_rcu); - kmem_cache_free(cifs_inode_cachep, CIFS_I(inode)); -} - static void -cifs_destroy_inode(struct inode *inode) +cifs_free_inode(struct inode *inode) { - call_rcu(&inode->i_rcu, cifs_i_callback); + kmem_cache_free(cifs_inode_cachep, CIFS_I(inode)); } static void @@ -630,7 +624,7 @@ static int cifs_drop_inode(struct inode *inode) static const struct super_operations cifs_super_ops = { .statfs = cifs_statfs, .alloc_inode = cifs_alloc_inode, - .destroy_inode = cifs_destroy_inode, + .free_inode = cifs_free_inode, .drop_inode = cifs_drop_inode, .evict_inode = cifs_evict_inode, /* .delete_inode = cifs_delete_inode, */ /* Do not need above -- 2.11.0