From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bastet.se.axis.com ([195.60.68.11]:49262 "EHLO bastet.se.axis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1165502AbeBOPof (ORCPT ); Thu, 15 Feb 2018 10:44:35 -0500 Date: Thu, 15 Feb 2018 16:44:31 +0100 From: Niklas Cassel To: Amir Goldstein Cc: Miklos Szeredi , stable , Greg KH , overlayfs Subject: Re: FAILED: patch "[PATCH] ovl: hash directory inodes for fsnotify" failed to apply to 4.14-stable tree Message-ID: <20180215154431.GA26404@axis.com> References: <151870507410538@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: stable-owner@vger.kernel.org List-ID: On Thu, Feb 15, 2018 at 05:02:32PM +0200, Amir Goldstein wrote: > On Thu, Feb 15, 2018 at 4:31 PM, wrote: > > > > The patch below does not apply to the 4.14-stable tree. > > If someone wants it applied there, or to any other stable or longterm > > tree, then please email the backport, including the original git commit > > id to . > > > > Hi Niklas, > > The conflict resolution of this patch for v4.14 is trivial (just dropping last > hunk of inode.c patch), but I no means to test this right now. > > Are you able and/or interested to test the attached backport path for > stable kernel v4.14? > > I have posted an LTP test (inotify07) to test this fix if anyone else > is interested in testing: > https://github.com/linux-test-project/ltp/pull/246 > > Thanks, > Amir. Hello Amir, I have already backported+verified the fix to v4.13 in one of our internal trees. Like you said, I simply dropped the last hunk of the patch that modfied inode.c, i.e. I simply ignored this hunk of the patch: @@ -685,7 +702,7 @@ struct inode *ovl_get_inode(struct dentry *dentry, struct dentry *upperdentry, ovl_set_flag(OVL_IMPURE, inode); /* Check for non-merge dir that may have whiteouts */ - if (S_ISDIR(realinode->i_mode)) { + if (is_dir) { struct ovl_entry *oe = dentry->d_fsdata; if (((upperdentry && lowerdentry) || oe->numlower > 1) || Regards, Niklas