Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3421277yba; Tue, 16 Apr 2019 10:58:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqw9c8nsayv1ykb1FdJljCHAXGXcqPrwKxBrf6X3/uPOYbgsy3/1QS1Fqn813i5L7Pw/pq4d X-Received: by 2002:a17:902:e002:: with SMTP id ca2mr84048390plb.131.1555437537225; Tue, 16 Apr 2019 10:58:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555437537; cv=none; d=google.com; s=arc-20160816; b=uL6scZqv8e6IQra+BdkhOh5zMds2kuirCzCrt21X0T+5tjW1olvBsTae3ZOxFF84KY QOR3ybS0bE8ZyP941/TGZkNagXFTF7RI+B0t6wDLhpNkNDMczmwWhwa0oa9gbV/AC2v0 QQ3ODYBBmtvMQ569k15K7hvmfKWs9GkBa+AEIdnZSDNhqrXKVdZyqLZC5UstctLlTPjv mIti4LnR2PXW2BrIl/fNbR5LM4B2xgDlOV6kYZq0CfPIh6GFlDdb9X8A1atj5I9yKNbs l0vvZ4O4+Hc4KSPAlvZnnuebyfdkTeat6H5s7Enwm/YVqCu9Bfd4h6q2SQ4MWiNQdMLQ S78Q== 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=wz4hq3siq38YRKbJYkeYNMhFmXb5s4uWGlMmJwk8q/U=; b=D9zcF7awnnNFlfktydXa9M7ugxXDb7YEtxoH+3rLdDlro8efXt1QdJE7I9C/vkTW6A btSMKjgs8IZZSk/6+xSEzaBbSPOaQoctTgPj9BcT7oK2voEIGmtbSNOLmhtPcD+Xoemm 7mzO9SdWqlBolfd0YtXncEiG6vlJUPBuNfUoCgtZt62X1M6WExXrsArlVWM9/x6uQnDj 0Wx7Po2y7ewdTrsO0ejX4J5fpkr96D5g6bsiAjfXtPLMfdyVdc/b+1ptymv874v6ZQyF lO4cIrBVpZLB+q8iAKdzbKFpqK5tT1/PkaIHVb3Ks+viML2lGL4uJMkbz8H/uEIJMFF4 ZFsQ== 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 w11si39062891plz.403.2019.04.16.10.58.41; Tue, 16 Apr 2019 10:58:57 -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 S1730811AbfDPR5Z (ORCPT + 99 others); Tue, 16 Apr 2019 13:57:25 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57618 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730284AbfDPRxq (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-0005Xr-73; 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 34/62] qnx6: switch to ->free_inode() Date: Tue, 16 Apr 2019 18:53:12 +0100 Message-Id: <20190416175340.21068-34-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/qnx6/inode.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/fs/qnx6/inode.c b/fs/qnx6/inode.c index 4aeb26bcb4d0..59cf45f6be49 100644 --- a/fs/qnx6/inode.c +++ b/fs/qnx6/inode.c @@ -29,14 +29,14 @@ static const struct super_operations qnx6_sops; static void qnx6_put_super(struct super_block *sb); static struct inode *qnx6_alloc_inode(struct super_block *sb); -static void qnx6_destroy_inode(struct inode *inode); +static void qnx6_free_inode(struct inode *inode); static int qnx6_remount(struct super_block *sb, int *flags, char *data); static int qnx6_statfs(struct dentry *dentry, struct kstatfs *buf); static int qnx6_show_options(struct seq_file *seq, struct dentry *root); static const struct super_operations qnx6_sops = { .alloc_inode = qnx6_alloc_inode, - .destroy_inode = qnx6_destroy_inode, + .free_inode = qnx6_free_inode, .put_super = qnx6_put_super, .statfs = qnx6_statfs, .remount_fs = qnx6_remount, @@ -602,17 +602,11 @@ static struct inode *qnx6_alloc_inode(struct super_block *sb) return &ei->vfs_inode; } -static void qnx6_i_callback(struct rcu_head *head) +static void qnx6_free_inode(struct inode *inode) { - struct inode *inode = container_of(head, struct inode, i_rcu); kmem_cache_free(qnx6_inode_cachep, QNX6_I(inode)); } -static void qnx6_destroy_inode(struct inode *inode) -{ - call_rcu(&inode->i_rcu, qnx6_i_callback); -} - static void init_once(void *foo) { struct qnx6_inode_info *ei = (struct qnx6_inode_info *) foo; -- 2.11.0