Received: by 10.192.165.156 with SMTP id m28csp1254097imm; Wed, 18 Apr 2018 06:50:21 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+IkyED/Mbn6kyf2PF+3yOYDxXdPXFqxRIceG6zkkF2A0KmLfHgZjb5zXxTVTYXO6mTP39L X-Received: by 10.101.67.6 with SMTP id j6mr1821197pgq.126.1524059421235; Wed, 18 Apr 2018 06:50:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524059421; cv=none; d=google.com; s=arc-20160816; b=cRqlhwcY97qVE43pl2Lkh1QbMTToaVlLAeCN1TAqx08BCB4U8JiobAByfAvNbQR7JS c0xlMp79mw6/NgQxvUzwyKscjFUR3sideWDvMtl5reo5tYy38xTvgywO/gTxkeng6cka YNZDXQKrGbE6cJtapAohTmTvZtrZCrswB2zSoboolIf9KYNT09MAcU45Endfqidt2hE6 jhf1r/qhIyLJ1wlpyNj5Du5e3DKxu4Yx102ZhHb3T3XBESJWygov3al5LaLQMXPiIAD0 BlxiTJdAoizJDCOIdeUfyg6cZC+oaG74sRCoPD/dZUqzLbKdszqSQk2hCgleMAewRfMR bHTw== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=YaSZiA8bte+H3akH5uGgBBcg0GG2TnCC8zyQELs09bw=; b=RskmyuZf8droU461LTqPrXJ28fe8wejnKgQ7w+4zfV2c+/PRwTA2KrRuTn1SIn98KK GIO6kvoa2rgLRhp/mDcXl1NhIWrDUtwXPMJm+vAT9cmrWMnvz1YkdJ1qrx4ZSMrdmjbX PrNUoTow1gEqvPf6CpydGGiT8bTgvJW/4W51Tng5CNLmPxX+XkLO2s4nyU/LXeTdbYBS LmhiWVJyBl6gZZQEwC8Fvc2CqtoA2ln87QZJ1OOnp2cofe4pwZWWv35lHETGsET08AAb Ag1u4jMYI01/OdIz3efTOsY19C91nDcn44RFOZW0+sG24itEtv852oM5y489wBjMsycM cfJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=SNFZ41C3; 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 o128si1081980pga.653.2018.04.18.06.50.07; Wed, 18 Apr 2018 06:50: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=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=SNFZ41C3; 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 S1753316AbeDRNtI (ORCPT + 99 others); Wed, 18 Apr 2018 09:49:08 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:45532 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753071AbeDRNtD (ORCPT ); Wed, 18 Apr 2018 09:49:03 -0400 Received: by mail-oi0-f67.google.com with SMTP id j10-v6so1614816oii.12 for ; Wed, 18 Apr 2018 06:49:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=YaSZiA8bte+H3akH5uGgBBcg0GG2TnCC8zyQELs09bw=; b=SNFZ41C32EbtFF3pZXYOQZIK0rogIjNKZZmJinVT3+Chlr/fxaWf5gGspYt9RGJyR7 qWXTZvHFTmCJCSORjpTVx6tFQYI7HMeeyfx1Vx3pPFIf0zo9cf/ga5CBOf/YjG/dZFUG wdONiXl4Xr1BPx+bQVGnN5dobXlR54BbYWZDk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=YaSZiA8bte+H3akH5uGgBBcg0GG2TnCC8zyQELs09bw=; b=CXZ53l2h4xZsVtqEXuAnjR5Je7nVY2vv77L2nBUf9FNXAYQfPClRqvh5ZLiAa7hCLp 7gnsO6gTyk9cOrCzAt+Nj1wuiKLvTmCh5aBGpxf5thTSP/vEEFXCtFmP1FM+Ydh5dADJ KPGstj5P66nZC+iIfXBlVlwEN8g73MOgRiNwi8ok5Lc+xAFQC/ZX4G0VmLuxj8rwmosX fO+VxCWFUc9TeZYnZV6mLojuZbpdy8tw0bzi3DoJsDStw8p7ogM4BljCpdToqzprmLle aTm7lqYYs3MvnLXK7RL8Rl2cnGBcPqRNbp+SDSdbARlEyNkeZ5e9T5RfZUx02Tdxouh9 0caw== X-Gm-Message-State: ALQs6tClwXOMqM941dtA250D2Um4MVCPF7lGh25EzYHF04EzovcSGDRH AYq84QEFuAe8NCsH6KQhZIwRbg+PE5fpwsf/9qJfvQ== X-Received: by 2002:aca:f388:: with SMTP id r130-v6mr1119329oih.17.1524059342951; Wed, 18 Apr 2018 06:49:02 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:5303:0:0:0:0:0 with HTTP; Wed, 18 Apr 2018 06:49:02 -0700 (PDT) X-Originating-IP: [176.63.54.97] In-Reply-To: <20180418093845.19ca33f3@gandalf.local.home> References: <20180412150826.20988-1-mszeredi@redhat.com> <20180412150826.20988-32-mszeredi@redhat.com> <20180418093845.19ca33f3@gandalf.local.home> From: Miklos Szeredi Date: Wed, 18 Apr 2018 15:49:02 +0200 Message-ID: Subject: Re: [RFC PATCH 31/35] Revert "vfs: add d_real_inode() helper" To: Steven Rostedt Cc: Amir Goldstein , Miklos Szeredi , overlayfs , linux-fsdevel , linux-kernel , Howard McLauchlan 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 Wed, Apr 18, 2018 at 3:38 PM, Steven Rostedt wrote: > On Wed, 18 Apr 2018 13:42:03 +0200 > Miklos Szeredi wrote: > >> On Wed, Apr 18, 2018 at 10:19 AM, Amir Goldstein wrote: >> > On Thu, Apr 12, 2018 at 6:08 PM, Miklos Szeredi wrote: >> >> This reverts commit a118084432d642eeccb961c7c8cc61525a941fcb. >> >> >> >> No user of d_real_inode() remains, so it can be removed. >> >> >> > >> > FYI, there is a new user in v4.17-rc1 added by commit >> > f0a2aa5a2a40 tracing/uprobe: Add support for overlayfs >> > >> > Seems like this patch got merged without any CC to overlayfs >> > mailing list nor maintainer? > > It appeared to be a small change with lots of reviewers. I didn't think > it was something to notify the overlayfs folks with. But perhaps I was > wrong. The patch is correct. The code surrounding it isn't, though. > >> > >> > Not sure yet if overlayfs-rorw patches would allow reverting this >> > change. >> >> Not trivial, because uprobe is looking at i_mapping to get a list of >> current memory maps. We could set i_mapping at overlay inode >> initialization time, but we definitely can't *change* i_mapping at >> copy up. Which is bound to result in some weird inconsistencies. So >> likely we'll need to keep d_real_inode() for the time being. > > I just received this patch: > > http://lkml.kernel.org/r/20180418062907.3210386-1-songliubraving@fb.com > > Which removes this code. Can you review it and I'll take it. It shouldn't remove d_real_inode(), because that part is correct and fixes a real bug in handling overlayfs files. I'll review, but apparently I wasn't CC-d on that patch. Weird. Thanks, Miklos