Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3430198yba; Tue, 16 Apr 2019 11:08:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqx9i0aQm5UXD4vlyFmGFJtVrlaw1hBDqLhnj5i4vBWA/9JkLnXH/ZCPb2piiouZQoYWUXyR X-Received: by 2002:a63:d444:: with SMTP id i4mr79626562pgj.149.1555438101611; Tue, 16 Apr 2019 11:08:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555438101; cv=none; d=google.com; s=arc-20160816; b=VrAOPAR8urBvyblO6UVpQj65+18Mu2f2+GAgOK9ujc8D23h6WTW0cfpkQPyhMuVAtW /0AztEH2hq8jlhyjYmZL+IsyMLzHN1obwUkE4ALhdul1mkZUzZiO346+NiJG5IaEypZ9 KMX/z7rB6Qv1DxTpWBu8oZj6eOGytVR3K4SzX3GPZaVUJuz+tAtA+CguPS5v5/hpW3OC 0dEtP6ea+QOyah5ELPHr2Pa9dPGtKLPjyi/rbuOfm9L7MxH1B35H6emR63cFf6uhrjPI ULhhSdd/d7sYLIASN4y79ICBNDKj9/0SD0hqUSrHF4nkDj1qeaNhQOsFAR/jQe6cwpHv oopQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=e4y0QlVztKLYzhyoXzFPZ8tuZcqavZHdJ+gdepaRcJA=; b=KmubhCx7Sfmd0ap17asG/0Ac39n/DUmqiqCB9FP6FB+0+7hhxFNbXAeDAENxKX2xO7 Oq5VQIMbKhqjsZ2HQqACN+XGLbWvQsEHoGEVqGGq3l4qq3SfMSKIexnUEyZ3N4g5cQza 8ASEHt2fVZKw0CnT1MyKbyGp0dmAaBM0/C5frDSYsDExRNYU7dd4wdGauOWV8KwZM2sK YQkeEMWpP1+7xxPdNnUet08CT5R1DfbliEx9PM9nVJHis5zEkl1GeuekZAWZEAKCR0Mw Yh5WZ64HqKuL19Tl6omosMesl4MJ6cxqqMjgkVnf5l5vNT9XRmhipkgvzrv4vqJNRC25 xvKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=n930NhSm; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o70si22093662pfa.33.2019.04.16.11.08.05; Tue, 16 Apr 2019 11:08:21 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=n930NhSm; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730335AbfDPSH1 (ORCPT + 99 others); Tue, 16 Apr 2019 14:07:27 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:40257 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727490AbfDPSH0 (ORCPT ); Tue, 16 Apr 2019 14:07:26 -0400 Received: by mail-lj1-f194.google.com with SMTP id q66so4870562ljq.7; Tue, 16 Apr 2019 11:07:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=e4y0QlVztKLYzhyoXzFPZ8tuZcqavZHdJ+gdepaRcJA=; b=n930NhSm3EeRNp10ARBxj98OtL86w99Mw/uMn/cGSHovzQyenduSFWXkzSyDEYp3my 1+3/k1MrsJjh2vFtqTHMta8KzCr+Vyd332q6bMQw04HTWgHUoxCfrx9TKTmuc9EKurgr NP4sD6mASxoT8s0TAjAFT2jE3b5CYNnvWn8MLUqjQQgbkORF1uRWA90QOb0AGnkXdIUg HDUzvh4oXK1GkWXLlc84CmXT1ELwonuRZA8T+eaO0D3nzMbYL2EsLtGY2nc+HuOoz1HZ yfHMLEqczakFljSAFYh10OzbZOUFUXNaDWKetVZrrYd5rP2j4jzdPnDGhp9Bn3bvokHn uc9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=e4y0QlVztKLYzhyoXzFPZ8tuZcqavZHdJ+gdepaRcJA=; b=CdjQNt5TaVLiTdgjYMMjWoWJAm5hCncMh+gT+EQf0UtirvTRltDdEDJ6l3hj1yMox7 h79aemXwzLkcOGzI96catu6L8xxEs5OpS+m74J4r7dvpKgxEyRnTjftYkdPj1grTA1Sx 5g5IUxHqsJ37CkSQsanKRY1I6YaYrCzlPDPsph0LT515VTGR7oJZCHpTS3l9AdlTkqJI IHcbyrqb/k24Hrd0wMqfl9NVF//e9biIOg/Fl3i6WtJrAHhpDoYf0I+bvAXcUXX9SXy6 5i13UtQTPCPMrp3ws4n5yCdyzARrw0puCAuXJ4P33g2ZLn4d597OnCwH9g24/qVIa/i/ Nzgg== X-Gm-Message-State: APjAAAUBUqENTz94ADpF31r7e4UFCTKJMpG/c7BKG0vz3qirLiJ4LU7f iNYYrIjn6VPrbf+/WLtY1MnYtljQ6GbQTmaDmQA= X-Received: by 2002:a2e:9655:: with SMTP id z21mr20039172ljh.60.1555438043915; Tue, 16 Apr 2019 11:07:23 -0700 (PDT) MIME-Version: 1.0 References: <20190416174900.GT2217@ZenIV.linux.org.uk> <20190416175340.21068-1-viro@ZenIV.linux.org.uk> <20190416175340.21068-44-viro@ZenIV.linux.org.uk> In-Reply-To: <20190416175340.21068-44-viro@ZenIV.linux.org.uk> From: Alexei Starovoitov Date: Tue, 16 Apr 2019 11:07:11 -0700 Message-ID: Subject: Re: [RFC PATCH 44/62] bpf: switch to ->free_inode() To: Al Viro , Daniel Borkmann , bpf Cc: Linus Torvalds , LKML , Linux-Fsdevel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 16, 2019 at 10:55 AM Al Viro wrote: > > From: Al Viro > > Signed-off-by: Al Viro Acked-by: Alexei Starovoitov > --- > 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 >