Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3421051yba; Tue, 16 Apr 2019 10:58:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqyU2BKo5IqCZ+E0+jjC8g5AQ8WzpGYHRMGepVqSOdhjqoY2Q/pURUrbQ3A8zLeeDRs2K8QA X-Received: by 2002:a62:f24e:: with SMTP id y14mr82242227pfl.209.1555437521937; Tue, 16 Apr 2019 10:58:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555437521; cv=none; d=google.com; s=arc-20160816; b=fQPbtngxqe4/ItG++82LX9TVENTpcM57qKxEK3s3FtYRB0IZ6V3cgPk7vsUKhkfait gU7gsmtQ7xni2356T0KRN8euo2NbwxoR2QUxWyzomNdwCTNyEhPXn6b1iHaAYy71jLo4 DVKYZ70qDPxWGB5AIr4n/Dkl4cPm+f8p3iHlJp/H1yznP3avLxqQJbW2yvxBgIhGpIuS N2kSUfHNGYYeyYAIi42LhOgI/bx1EcMYsIyeFAD8B3oMkUqmvdGQd199pv23g90pZVNW zkhZlAY/hxgHtHmXQRZyRuHjhG+vKcJMGJt5SF+gCmaiX12azd3EKovrVLL4RFnDDN84 9Yow== 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=j5AzDmv0cylkHpFNB1ACTTmHc1ZJ9jqDGCJTpN9N0rY=; b=t+DE0NnHusDjRapayPt8Ep1Gkxs8849N3hC00gDE9dUkXpGHukZ25tgN1Y+VuK8tMz XISZnh8Sz44BYUEDw3I0wN60SQXUCR2j8UltTpYHKbzjUCWlA0MzNhaNJsrirlMonVO6 /2MryHNah91MV5WlPoiV9cH0oUwStBrAr2rFv56tS1FH1iPRaXqDu+VaH9Xv7Z6jesYR ZbbhBOb4SQoZQaebK9I5IJU1BzZmY+Kv2Nkj5i3HarRQ380C/qFwJdNvCYoKzp/X1tv9 PBq4LH08rhXqDkenjg1veXaDqmnGmzs0DAy8WctGX9ny3S9V4LSPzNCAx+q+797rQjSa f9tg== 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 a85si24834244pfj.12.2019.04.16.10.58.26; Tue, 16 Apr 2019 10:58:41 -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 S1730621AbfDPR5F (ORCPT + 99 others); Tue, 16 Apr 2019 13:57:05 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57630 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730289AbfDPRxr (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 1hGSHB-0005Y9-J4; Tue, 16 Apr 2019 17:53:45 +0000 From: Al Viro To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [RFC PATCH 37/62] squashfs: switch to ->free_inode() Date: Tue, 16 Apr 2019 18:53:15 +0100 Message-Id: <20190416175340.21068-37-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/squashfs/super.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/fs/squashfs/super.c b/fs/squashfs/super.c index 40e657386fa5..767046d9f65d 100644 --- a/fs/squashfs/super.c +++ b/fs/squashfs/super.c @@ -473,18 +473,11 @@ static struct inode *squashfs_alloc_inode(struct super_block *sb) } -static void squashfs_i_callback(struct rcu_head *head) +static void squashfs_free_inode(struct inode *inode) { - struct inode *inode = container_of(head, struct inode, i_rcu); kmem_cache_free(squashfs_inode_cachep, squashfs_i(inode)); } -static void squashfs_destroy_inode(struct inode *inode) -{ - call_rcu(&inode->i_rcu, squashfs_i_callback); -} - - static struct file_system_type squashfs_fs_type = { .owner = THIS_MODULE, .name = "squashfs", @@ -496,7 +489,7 @@ MODULE_ALIAS_FS("squashfs"); static const struct super_operations squashfs_super_ops = { .alloc_inode = squashfs_alloc_inode, - .destroy_inode = squashfs_destroy_inode, + .free_inode = squashfs_free_inode, .statfs = squashfs_statfs, .put_super = squashfs_put_super, .remount_fs = squashfs_remount -- 2.11.0