]> git.baikalelectronics.ru Git - kernel.git/commit
ovl: fix regression in fsnotify of overlay merge dir
authorAmir Goldstein <amir73il@gmail.com>
Sun, 28 Jan 2018 00:35:48 +0000 (02:35 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Mon, 5 Feb 2018 08:50:29 +0000 (09:50 +0100)
commit8b116f9187a2c64dd01b7b1b6be93edf30270b29
treea5234726cf9bb681e77883fde009563b69727db7
parentab57019fa0d37db748d64a78ac6244b901f3a6bb
ovl: fix regression in fsnotify of overlay merge dir

A re-factoring patch in NFS export series has passed the wrong argument
to ovl_get_inode() causing a regression in the very recent fix to
fsnotify of overlay merge dir.

The regression has caused merge directory inodes to be hashed by upper
instead of lower real inode, when NFS export and directory indexing is
disabled. That caused an inotify watch to become obsolete after directory
copy up and drop caches.

LTP test inotify07 was improved to catch this regression.
The regression also caused multiple redirect dirs to same origin not to
be detected on lookup with NFS export disabled. An xfstest was added to
cover this case.

Fixes: 6a09864b168f ("ovl: do not pass overlay dentry to ovl_get_inode()")
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/namei.c