Received: by 10.192.165.156 with SMTP id m28csp852114imm; Fri, 13 Apr 2018 08:57:22 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/gomeE5nhl2gCT4s1XRc/21Gu/2z7DVB6i0EJcAho+8dlo0mOxMMOqCbwdz/2cRrGRSY7P X-Received: by 10.167.128.207 with SMTP id a15mr12081390pfn.116.1523635042854; Fri, 13 Apr 2018 08:57:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523635042; cv=none; d=google.com; s=arc-20160816; b=WVXONC/Oc16eDGO0mAoGEj4sw5Wq/bNfVF9KBtTXLm1pnApiiAs6yRFP43Yi9hATpY 4tsGHu3OpHcj210sR5NLMf6D5d+KM2GQSlUL8noK5tA0VkYR93Oc3s8BISRNUoqMVGSf 2LMkbbqH0yu2C2kD8e6k66YXk5tc+11S7g7Az8WMEsUTvrMmpAxS7yC10HcTWHFOOPMW vn6TZP2drd9eKutqddksm8YsSrizIg5hfHzDriwnUF1Xcx35fb5bl8El6zm8ADdckMQ+ O2htb3xbq6R81S35XY6tv/9nlNL8M6iSG4GGlP1wH3f+6wo94l2Wp2/t5pvsIIkOaeuk mbwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=ci/xy1iGu47HD3h1VG0Jmk0lq5DYkRlbPlluyse9jnU=; b=T2sdNHxS1w1NOEsiDeAxU5UgD0o/I0NoBF7kJLLox27voNlmmh3DEeEYA32YKjuORV +bw1/nVWCltE/f1KmtZTm9Q+CNu40tN4pDiCrtpcY9hN0DboVaGl7fnFmXYDP/uovWjS Vqa5FlqZxk9yr+sHTYqTIjnah0sYmtN2fgJsfysbSUuDADUnRtW4uK6hUsTwnMBzqFGG BHXyDQLZ7puI8n85pHzhzxcWoKz1Lt6MXsaRA7HsBWFzCcwDdugzkhmreU6oSnXv1E3a j0W8U6ikDjjQ0Ddpb7VzzjQ4J7eMlWIsOrFaKJKP7cRvftO0asoLYJmbO9LA1muuqZTn xKSQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l8si4288613pgr.187.2018.04.13.08.57.08; Fri, 13 Apr 2018 08:57:22 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752100AbeDMPz5 (ORCPT + 99 others); Fri, 13 Apr 2018 11:55:57 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:37466 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750837AbeDMPzz (ORCPT ); Fri, 13 Apr 2018 11:55:55 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 409388DC32; Fri, 13 Apr 2018 15:55:55 +0000 (UTC) Received: from horse.redhat.com (unknown [10.18.25.159]) by smtp.corp.redhat.com (Postfix) with ESMTP id 33E99D7DE9; Fri, 13 Apr 2018 15:55:55 +0000 (UTC) Received: by horse.redhat.com (Postfix, from userid 10451) id 057A522017A; Fri, 13 Apr 2018 11:55:55 -0400 (EDT) Date: Fri, 13 Apr 2018 11:55:54 -0400 From: Vivek Goyal To: Miklos Szeredi Cc: linux-unionfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 24/35] Revert "ovl: fix relatime for directories" Message-ID: <20180413155554.GB2706@redhat.com> References: <20180412150826.20988-1-mszeredi@redhat.com> <20180412150826.20988-25-mszeredi@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180412150826.20988-25-mszeredi@redhat.com> User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Fri, 13 Apr 2018 15:55:55 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Fri, 13 Apr 2018 15:55:55 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'vgoyal@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 12, 2018 at 05:08:15PM +0200, Miklos Szeredi wrote: > This reverts commit cd91304e7190b4c4802f8e413ab2214b233e0260. > > Overlayfs no longer relies on the vfs correct atime handling. > > Signed-off-by: Miklos Szeredi > --- > fs/inode.c | 21 ++++----------------- > fs/overlayfs/super.c | 3 --- > include/linux/dcache.h | 3 --- > 3 files changed, 4 insertions(+), 23 deletions(-) > > diff --git a/fs/inode.c b/fs/inode.c > index ef362364d396..163715de8cb2 100644 > --- a/fs/inode.c > +++ b/fs/inode.c > @@ -1570,24 +1570,11 @@ EXPORT_SYMBOL(bmap); > static void update_ovl_inode_times(struct dentry *dentry, struct inode *inode, > bool rcu) > { > - struct dentry *upperdentry; > + if (!rcu) { > + struct inode *realinode = d_real_inode(dentry); > > - /* > - * Nothing to do if in rcu or if non-overlayfs > - */ > - if (rcu || likely(!(dentry->d_flags & DCACHE_OP_REAL))) > - return; > - > - upperdentry = d_real(dentry, NULL, 0, D_REAL_UPPER); > - > - /* > - * If file is on lower then we can't update atime, so no worries about > - * stale mtime/ctime. > - */ > - if (upperdentry) { > - struct inode *realinode = d_inode(upperdentry); > - > - if ((!timespec_equal(&inode->i_mtime, &realinode->i_mtime) || > + if (unlikely(inode != realinode) && > + (!timespec_equal(&inode->i_mtime, &realinode->i_mtime) || > !timespec_equal(&inode->i_ctime, &realinode->i_ctime))) { > inode->i_mtime = realinode->i_mtime; > inode->i_ctime = realinode->i_ctime; > diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c > index c3d8c7ea180f..006dc70d7425 100644 > --- a/fs/overlayfs/super.c > +++ b/fs/overlayfs/super.c > @@ -107,9 +107,6 @@ static struct dentry *ovl_d_real(struct dentry *dentry, > if (inode && d_inode(dentry) == inode) > return dentry; > > - if (flags & D_REAL_UPPER) > - return ovl_dentry_upper(dentry); > - > if (!d_is_reg(dentry)) { > if (!inode || inode == d_inode(dentry)) > return dentry; > diff --git a/include/linux/dcache.h b/include/linux/dcache.h > index 82a99d366aec..4c7ab11c627a 100644 > --- a/include/linux/dcache.h > +++ b/include/linux/dcache.h > @@ -565,9 +565,6 @@ static inline struct dentry *d_backing_dentry(struct dentry *upper) > return upper; > } > > -/* d_real() flags */ > -#define D_REAL_UPPER 0x2 /* return upper dentry or NULL if non-upper */ Good to see this go away. It was a major headache for metacopy only patches. Vivek > - > /** > * d_real - Return the real dentry > * @dentry: the dentry to query > -- > 2.14.3 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-unionfs" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html