Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3421744yba; Tue, 16 Apr 2019 10:59:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqyKAC//8/GSxY7YqeclT2Ow+7Lw5avZ7Z9kCbJSUVTOQyvTPhVVU0RJLQNGmMl9AIyk58j1 X-Received: by 2002:a17:902:be09:: with SMTP id r9mr80880981pls.215.1555437571350; Tue, 16 Apr 2019 10:59:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555437571; cv=none; d=google.com; s=arc-20160816; b=kPvE+DJfZ6njNjsQTVXfto0bzrYrsaYJCwOPAVAihXCB2ugeD89oD99K8Yd4UxiE7g T3PDviaflSede04hywV0WQunYE2NaKNb4/speXYXm30BQcaZ3DO0sqqZ7K3sObS74YGO gD3Xfz8vaeYW70wOT0iogvz2srVFuJ/PYb+Q8cmDn4SB7Cl3htyi67Xpj8cnMy5YhiOl fg2MuwWM5dB3XPV/aBulv/+Wv4pDSkB/8eEtsVRydfnGTD2EeFuLZDpx//0EWJ1bwyio A4k1kUKPuAu3wunLPuxoFSwKC9Jc2+M2UeViWk8bfR79vij5fHKyAplxZ191KIq1AwDL jASQ== 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=ih8SsGca3WqF2E+pCwUsqniyB9s7/dXXqc/8noXymBI=; b=U0t1CJDL5kBEWk6YRMQIs43Fz9B4WuASjNUjwdh/s0oo7/ly4dDT7v97xMsS1xyfHU FW3tFs4gi+kUOMOERSGjKPxMfowMqvDh2IcqzAkNz5yRI0ClPxzOCFspq92+s6aL/eY6 pEINAPsd9RdMMrzg0YN9/sPm1p/6YTCUFYDtor81YoNQWblJXjP4JJtYc/ZCUu1CJvGN cxp6P5bGH2gOtDZO7qOtAFWmRkYBIuOu6SkuZvvQYHzRZcbt2rrLNXDY0Osq6A+KUZtU Id09AdUUG0GfRFKMbUwZ3QusQcGb+NE7boSAtWn2svnFi5fQRA23WNydIyLGZnT/fmFH E/fg== 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 z64si48912000pgd.106.2019.04.16.10.59.15; Tue, 16 Apr 2019 10:59: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 S1730426AbfDPR4h (ORCPT + 99 others); Tue, 16 Apr 2019 13:56:37 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57650 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730299AbfDPRxs (ORCPT ); Tue, 16 Apr 2019 13:53:48 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92 #3 (Red Hat Linux)) id 1hGSHC-0005Yf-BF; 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 42/62] ufs: switch to ->free_inode() Date: Tue, 16 Apr 2019 18:53:20 +0100 Message-Id: <20190416175340.21068-42-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/ufs/super.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/fs/ufs/super.c b/fs/ufs/super.c index a4e07e910f1b..84c0c5178cd2 100644 --- a/fs/ufs/super.c +++ b/fs/ufs/super.c @@ -1449,17 +1449,11 @@ static struct inode *ufs_alloc_inode(struct super_block *sb) return &ei->vfs_inode; } -static void ufs_i_callback(struct rcu_head *head) +static void ufs_free_in_core_inode(struct inode *inode) { - struct inode *inode = container_of(head, struct inode, i_rcu); kmem_cache_free(ufs_inode_cachep, UFS_I(inode)); } -static void ufs_destroy_inode(struct inode *inode) -{ - call_rcu(&inode->i_rcu, ufs_i_callback); -} - static void init_once(void *foo) { struct ufs_inode_info *ei = (struct ufs_inode_info *) foo; @@ -1494,7 +1488,7 @@ static void destroy_inodecache(void) static const struct super_operations ufs_super_ops = { .alloc_inode = ufs_alloc_inode, - .destroy_inode = ufs_destroy_inode, + .free_inode = ufs_free_in_core_inode, .write_inode = ufs_write_inode, .evict_inode = ufs_evict_inode, .put_super = ufs_put_super, -- 2.11.0