Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3421181yba; Tue, 16 Apr 2019 10:58:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqwfBNEtjfOXhl/HjQ9jD60XHwujR8mcC8xkxFzdHEmS+hbdZ+5x7pQsjqe6yEeWZpmRyZzH X-Received: by 2002:a62:76c1:: with SMTP id r184mr81124862pfc.229.1555437530881; Tue, 16 Apr 2019 10:58:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555437530; cv=none; d=google.com; s=arc-20160816; b=U9BI/e6V1Vk7hzOcEpdXLtFoDVb7e3q7kYlG+Q9Jyz6sN0LUqtpKXPaM/boYQnMusv SQ1wXq4H9NQZHrdZoDCBiHtrctXmFnHTFFdRK5fj++5c7BdZ4MBWZ4ZdHtx4qKJr0jb6 eYL75c8gc7t2v/Zb6XCm7lgqB/wF5mHI+Tk+4f5hTD3j55TvwcmvK8O6CYLVux8WONyN vY71LMpfLm/ZPiIr6QKhj7iCyDQ+P2hD02ktzzxCpd3oz2cmsYakorEz4gFsnHsP81Pl o1ZQycuNiMB/RF1byc5W3cPzQUwdJqsvVaa7eysf4WG2ucDfw9BJiFsaq53M2cFIXgrh p4wQ== 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=I2NEgR/pSFJYFij4VUFrcGtT8jxpkwtHC9hCEDCUFyw=; b=OzeDFSZc19tWmxilt+IuYSr2sKp5dpRNjXEVlav02KcuQyGywUon9nQcY1SiVVytjN 5ITJIL7InkkOmss1e9PdMH/uVJ+9/RfHlYVtVEaG6zNmb0pcwyQcuswojfzitMYTGX8w EevVeu1SPRB0Pqh4AHjcjVhB8WGpG932HgchKQr7w1U30b3hzkGUgUJpM58Cv7NaMsVk rFBW1vsU7xVo7N4nxJvG+GJTcOd2NHq+mBv078ivPQSF9PHsMirjNCjbvKFoR75IzGgz 0pByfbVGRqKjNcIIKArMhTg0P0UK1XF4QzzlTsduT6n7neyfsjmPddl7gQyUEl5usF1s SxTw== 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 m13si46217272pgv.582.2019.04.16.10.58.35; Tue, 16 Apr 2019 10:58:50 -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 S1730785AbfDPR5U (ORCPT + 99 others); Tue, 16 Apr 2019 13:57:20 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57614 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730282AbfDPRxq (ORCPT ); Tue, 16 Apr 2019 13:53:46 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92 #3 (Red Hat Linux)) id 1hGSHB-0005Xl-2q; 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 33/62] qnx4: switch to ->free_inode() Date: Tue, 16 Apr 2019 18:53:11 +0100 Message-Id: <20190416175340.21068-33-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/qnx4/inode.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/fs/qnx4/inode.c b/fs/qnx4/inode.c index 3d46fe302fcb..48c70aa4a3ec 100644 --- a/fs/qnx4/inode.c +++ b/fs/qnx4/inode.c @@ -28,14 +28,14 @@ static const struct super_operations qnx4_sops; static struct inode *qnx4_alloc_inode(struct super_block *sb); -static void qnx4_destroy_inode(struct inode *inode); +static void qnx4_free_inode(struct inode *inode); static int qnx4_remount(struct super_block *sb, int *flags, char *data); static int qnx4_statfs(struct dentry *, struct kstatfs *); static const struct super_operations qnx4_sops = { .alloc_inode = qnx4_alloc_inode, - .destroy_inode = qnx4_destroy_inode, + .free_inode = qnx4_free_inode, .statfs = qnx4_statfs, .remount_fs = qnx4_remount, }; @@ -342,17 +342,11 @@ static struct inode *qnx4_alloc_inode(struct super_block *sb) return &ei->vfs_inode; } -static void qnx4_i_callback(struct rcu_head *head) +static void qnx4_free_inode(struct inode *inode) { - struct inode *inode = container_of(head, struct inode, i_rcu); kmem_cache_free(qnx4_inode_cachep, qnx4_i(inode)); } -static void qnx4_destroy_inode(struct inode *inode) -{ - call_rcu(&inode->i_rcu, qnx4_i_callback); -} - static void init_once(void *foo) { struct qnx4_inode_info *ei = (struct qnx4_inode_info *) foo; -- 2.11.0