Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3421353yba; Tue, 16 Apr 2019 10:59:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqwMGgST1Xl4CA622DyIzQ7PWtNpq+OlYUIB08P8bMcfl7PA2lU8w05P619YvLkugqQOo63p X-Received: by 2002:aa7:818a:: with SMTP id g10mr81643446pfi.178.1555437543273; 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=AY4FJFmNDkIXFDNUZqqeis3nmxLZT6CtdgpqT8hJtvFIFtB6FRM4edWFUZwWk/jscH 2OOc35vYFLC68lY7i8CX1Eb7zBbj7ffgVdF5H/+CKej/JsuaRb/jdxUE/iy46smFWQ5E ZFCoF6MaHxK+xQuBRFw6QquJA4tq4WFxfcfdjKPdXCLYApLyrjec5ngAM6RFqpKYacTn r3Hs4YWC19or7inlrcsTKapvTbHVIonB6AjAn1q3x3ABeUT0/tn9vry7qq6QF778U4YR CBQZXS5LWS08YEmS8StoUTKt74ilL0WVJxYRiSfK6DkU8/jbLrCHzALEPyf3zIziC8/u iOMw== 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=n2F2jd4Tah/Orm+6hTfkfDhFTaARMOxgxnMADTLWsLA=; b=gCwsXg+LUsD7mnL0RHgWCnunGs8jcY/LR+J4NU2dazbSQrfqKLp8L4xj72vVmSonq/ oJgntR/IoaK5j+taeNdYSQwg721RTQqpHW0Cwnx6QNokB6UtAJLcYSB6FHbMnm+mSU9H YjKb+UQ8socumbBXM26awTVnz0aIX5wvcPXOtLapi4NtuUGvE/gXfgt6ksy0gZy4nqtF vKx1Qm0s40yk5cNWpX1T7OkNIZlMknZRXIj//RXcRsa7RXo304McNeg3QTOTuA1HDjdX 4/8o+Xe0jMc+8auACcH96Kf8hIN3CkolbtUitbBaDUumZLm5MS3/NV7DnpxZd8ygPXQZ /4Sw== 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 2si26141441pld.334.2019.04.16.10.58.46; 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 S1730359AbfDPRxt (ORCPT + 99 others); Tue, 16 Apr 2019 13:53:49 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57502 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728108AbfDPRxn (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-0005Un-5i; 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 05/62] erofs: switch to ->free_inode() Date: Tue, 16 Apr 2019 18:52:43 +0100 Message-Id: <20190416175340.21068-5-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 --- drivers/staging/erofs/super.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/staging/erofs/super.c b/drivers/staging/erofs/super.c index 15c784fba879..700cbd460807 100644 --- a/drivers/staging/erofs/super.c +++ b/drivers/staging/erofs/super.c @@ -57,9 +57,8 @@ static struct inode *alloc_inode(struct super_block *sb) return &vi->vfs_inode; } -static void i_callback(struct rcu_head *head) +static void free_inode(struct inode *inode) { - struct inode *inode = container_of(head, struct inode, i_rcu); struct erofs_vnode *vi = EROFS_V(inode); /* be careful RCU symlink path (see ext4_inode_info->i_data)! */ @@ -71,11 +70,6 @@ static void i_callback(struct rcu_head *head) kmem_cache_free(erofs_inode_cachep, vi); } -static void destroy_inode(struct inode *inode) -{ - call_rcu(&inode->i_rcu, i_callback); -} - static int superblock_read(struct super_block *sb) { struct erofs_sb_info *sbi; @@ -668,7 +662,7 @@ static int erofs_remount(struct super_block *sb, int *flags, char *data) const struct super_operations erofs_sops = { .put_super = erofs_put_super, .alloc_inode = alloc_inode, - .destroy_inode = destroy_inode, + .free_inode = free_inode, .statfs = erofs_statfs, .show_options = erofs_show_options, .remount_fs = erofs_remount, -- 2.11.0