Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3418544yba; Tue, 16 Apr 2019 10:55:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqzSx6xlX+kEk2gpeZOBnbQesf8xXClq5gUDfI0Z7cEvAJwiOQ/RyV7jyJzRpgBTJBLvb5Vo X-Received: by 2002:a65:63d5:: with SMTP id n21mr68808834pgv.330.1555437336438; Tue, 16 Apr 2019 10:55:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555437336; cv=none; d=google.com; s=arc-20160816; b=WExXBlk4cz5G/jBovaz+nnliJsZ6A6IGzmsK3OyNgsu/MMI3WRyX7lFZ0uhQP1AvFY rHn03b5mWlQV3W30uE6x/Ls4+SSMoApwd1zlhbMfFW0KvSsLRwcrDXl7Hp73YNx8UfXS OLz+aAttxBCfyhZrhGq29HuC7EO5Qu34p3gGyQf/HbuLBFlIxdRvMNEaniEejbYrGSdt xALQ/xZIhJVTufF1e707kJRKw6lQDGqj1tFZvRC9SJ4/LuXmv7evEupbudnfpZUn6IBM uYVd4sPWNGRMrFnsoKMXtdjlWwQA1RScg7slX7P9CfXnI2e5H9LzV7U8/iIiVXEJoU4C CvHw== 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=jI9MfY/mzuVzKClM8NKxadgrvwVclJyVpHbxB6KQ1hU=; b=pfEsF1wp9CYb6z7YeakprIDfOJceDLwY5i0awkVUy7BvsCISs6eifuNSHEns649ei2 JfNiUA7IaJAYkzOXd6QIqptYs6TC2RX+SbK5fzyOO7ZWUa57QvOOxgyAC6c2jJVetEp0 aBPGHmXAjFbnTn6ZmJ6ihwW0HS8GgY1Sp54mijbWkRsrLjHrtdCbRztKPZsAyYtJqEyq TLiCOz15s94NLdeQQ9UYvkVZx8NQwASW6lByKrHVRHDNfoizu7niZdl+AB/TIt7rB0+M SIG3sVJ6aQqS3OJ0+bn6QE88t6z5N9FXY/VxeNqcETAVP90kQTcfrK7yswBdypfjKrMe e8xg== 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.55.20; Tue, 16 Apr 2019 10:55:36 -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 S1730494AbfDPRyD (ORCPT + 99 others); Tue, 16 Apr 2019 13:54:03 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57656 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730310AbfDPRxs (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-0005Yt-OR; 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 44/62] bpf: switch to ->free_inode() Date: Tue, 16 Apr 2019 18:53:22 +0100 Message-Id: <20190416175340.21068-44-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 --- kernel/bpf/inode.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/kernel/bpf/inode.c b/kernel/bpf/inode.c index 4a8f390a2b82..bc53e5b20ddc 100644 --- a/kernel/bpf/inode.c +++ b/kernel/bpf/inode.c @@ -566,9 +566,8 @@ static int bpf_show_options(struct seq_file *m, struct dentry *root) return 0; } -static void bpf_destroy_inode_deferred(struct rcu_head *head) +static void bpf_free_inode(struct inode *inode) { - struct inode *inode = container_of(head, struct inode, i_rcu); enum bpf_type type; if (S_ISLNK(inode->i_mode)) @@ -578,16 +577,11 @@ static void bpf_destroy_inode_deferred(struct rcu_head *head) free_inode_nonrcu(inode); } -static void bpf_destroy_inode(struct inode *inode) -{ - call_rcu(&inode->i_rcu, bpf_destroy_inode_deferred); -} - static const struct super_operations bpf_super_ops = { .statfs = simple_statfs, .drop_inode = generic_delete_inode, .show_options = bpf_show_options, - .destroy_inode = bpf_destroy_inode, + .free_inode = bpf_free_inode, }; enum { -- 2.11.0