Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3418487yba; Tue, 16 Apr 2019 10:55:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqz6VwHMA00jBRYEOyZlqvBdcWzM4WEFoRKLEvKg/xXhCno4EUrnmmehUCY44CRZP1peD46R X-Received: by 2002:a17:902:2a4b:: with SMTP id i69mr28117991plb.292.1555437333071; Tue, 16 Apr 2019 10:55:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555437333; cv=none; d=google.com; s=arc-20160816; b=fca8PSOVu6jXJnKaPAxN5ENX6LMFIXefe5LjKhcdtQOT8HkTboG5knPJ12bNl4ymfn +RCSPokhiTxveKAsUBgm5o6wFTLcMKLjLqFyf0hJvmnGnWmgTF8ceh5PqepaEVpWHm6i TABj9DBAExvMj793yQnvx/5AtlcFshPn/vZEaeEmKYAtlbbflJvaDcOrhMrkn5UqM9bY oj3XgBm6d17tPvPPsyB7IVqvGVHuGrtRadHNb5iomLaqfpCPGcgYwjgzo1UzCdfFyREI xKh3d/ZjzMmzO+RC2ldk+YxpCogTIE4ySoep2rMJ9PwQIkGH2pWjZlHmQUXviRQ/C92F l7sw== 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=tsB+rRrA8+y5wQw3yoU6Bo5vtZ4jaPRfaSMiKOBM7r4=; b=vMGS5+z/IqlYCwphbSvtRFqEeKkbj+AOTSX3rpx7OH+M7777JV44Zr3fOuTXfNzVMU oWIlM2BCDPb/5FPKMAymSMdet+V0PyIbJIxD+v4vnlLBgXuWXymRkpveVDAbe8cZayWU Gp2hKMZaTEdYwcJ9XO3cWtfnRszCqqhDCBOqGvdPYsd7FI/H3LeGULJ1/HpojFbCrEaF qsxQHuJ5OGogskVDhxS8niT95oDRHGX9VVkQAEOXl1CHexC+2KE6eTCIrFydOiTTbI4i EXUkLKCqy06ESAZKCTjHVo1cEBYDHviHbkm5zEl336w9xFoCxayPvzAXD8Es4qoqhCUV SeDw== 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 d39si25628643pla.304.2019.04.16.10.55.17; Tue, 16 Apr 2019 10:55:33 -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 S1730507AbfDPRyF (ORCPT + 99 others); Tue, 16 Apr 2019 13:54:05 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57654 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730307AbfDPRxs (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-0005Yn-HO; 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 43/62] mqueue: switch to ->free_inode() Date: Tue, 16 Apr 2019 18:53:21 +0100 Message-Id: <20190416175340.21068-43-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 --- ipc/mqueue.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/ipc/mqueue.c b/ipc/mqueue.c index aea30530c472..ba44164ea1f9 100644 --- a/ipc/mqueue.c +++ b/ipc/mqueue.c @@ -419,17 +419,11 @@ static struct inode *mqueue_alloc_inode(struct super_block *sb) return &ei->vfs_inode; } -static void mqueue_i_callback(struct rcu_head *head) +static void mqueue_free_inode(struct inode *inode) { - struct inode *inode = container_of(head, struct inode, i_rcu); kmem_cache_free(mqueue_inode_cachep, MQUEUE_I(inode)); } -static void mqueue_destroy_inode(struct inode *inode) -{ - call_rcu(&inode->i_rcu, mqueue_i_callback); -} - static void mqueue_evict_inode(struct inode *inode) { struct mqueue_inode_info *info; @@ -1562,7 +1556,7 @@ static const struct file_operations mqueue_file_operations = { static const struct super_operations mqueue_super_ops = { .alloc_inode = mqueue_alloc_inode, - .destroy_inode = mqueue_destroy_inode, + .free_inode = mqueue_free_inode, .evict_inode = mqueue_evict_inode, .statfs = simple_statfs, }; -- 2.11.0