Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3420983yba; Tue, 16 Apr 2019 10:58:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqzNAUxI0ftLMt2NRyFjEv92Nd8MHwHeT3jyk4k8Id9atNxAw+GHoyBto+F2ye2Jtu73qrTw X-Received: by 2002:a63:e004:: with SMTP id e4mr78772374pgh.344.1555437517392; Tue, 16 Apr 2019 10:58:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555437517; cv=none; d=google.com; s=arc-20160816; b=epDslWgmLHuS0vsTf2BctT9L7zsUceKb3d0Tf+DuUIJgi2+DIk4lUAS8cFb+j0awFA UAK4u2nXT+MxFxg3HoLSlQHaY0pgaCDExJ7oBPVKAUh7lPXL8Dao007+N1+4kXYlqmqe a+mkxM0SnEHRdM1KyS1b5kCbXMAr/trQ/BqmGjf8NAUp4lys04PW3C/+fQ0Xb5AXWooQ 5MXZd1X/DYf7nyh/0JUHHVoTYWIvoYmn0RaTaM7CKuHNEb2fCsdJSR81go8I3JS/RmeC 3qWnFSZapBLgR7nKM9/8PrJw46bRIgscYBWbeJei+9KPuqrDS2BvHLNQyoBWSqdE083Q FoEA== 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=Jodgg2MGjWiMUVyoPq3yuZ1l/0k30n8R3e4GUcSRI0c=; b=GriwdkiJIFGgHtVnZW2f4LJWhNDB5Sx2Ze9DTlU8Gz/YZsiY42BSMxVOhNVib/6cbk YzJY856ZoXphMyNeQmGbIUR8LjCLF0rpsocfBJZjobKluiMMQsDJTJuPYl3eixjr2Yfi M1WUD/9L0W1bnRmAk4SWlVW55FIEj9o7yJsoG4VnBuIdnt8WVtO7Ko4rXI6mg2nodAbq X9rmi1HyPrW7cfSu1tKtvZP/M0F6Eme2wJvQTafOUcHYZh59FaOlsrgPIZf+2ESyN4qm +hzlmAJzl7KqGY6Jor9w9dsOBfD1im1aNyhYTr8ybPANFdI7NY2HfSYDl0xsEMVkPeLb HIVw== 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 c15si18480526pfr.242.2019.04.16.10.58.21; Tue, 16 Apr 2019 10:58:37 -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 S1730589AbfDPR47 (ORCPT + 99 others); Tue, 16 Apr 2019 13:56:59 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57632 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730294AbfDPRxr (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-0005YG-Nu; 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 38/62] ubifs: switch to ->free_inode() Date: Tue, 16 Apr 2019 18:53:16 +0100 Message-Id: <20190416175340.21068-38-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/ubifs/super.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index 12628184772c..c2307c423638 100644 --- a/fs/ubifs/super.c +++ b/fs/ubifs/super.c @@ -272,19 +272,13 @@ static struct inode *ubifs_alloc_inode(struct super_block *sb) return &ui->vfs_inode; }; -static void ubifs_i_callback(struct rcu_head *head) +static void ubifs_free_inode(struct inode *inode) { - struct inode *inode = container_of(head, struct inode, i_rcu); struct ubifs_inode *ui = ubifs_inode(inode); kfree(ui->data); kmem_cache_free(ubifs_inode_slab, ui); } -static void ubifs_destroy_inode(struct inode *inode) -{ - call_rcu(&inode->i_rcu, ubifs_i_callback); -} - /* * Note, Linux write-back code calls this without 'i_mutex'. */ @@ -1977,7 +1971,7 @@ static int ubifs_remount_fs(struct super_block *sb, int *flags, char *data) const struct super_operations ubifs_super_operations = { .alloc_inode = ubifs_alloc_inode, - .destroy_inode = ubifs_destroy_inode, + .free_inode = ubifs_free_inode, .put_super = ubifs_put_super, .write_inode = ubifs_write_inode, .evict_inode = ubifs_evict_inode, -- 2.11.0