linux/fs/overlayfs
Amir Goldstein 09b696bd21 ovl: fix unneeded call to ovl_change_flags()
commit 81a33c1ee9 upstream.

The check if user has changed the overlay file was wrong, causing unneeded
call to ovl_change_flags() including taking f_lock on every file access.

Fixes: d989903058 ("ovl: do not generate duplicate fsnotify events for "fake" path")
Cc: <stable@vger.kernel.org> # v4.19+
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-07-22 09:33:12 +02:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
copy_up.c ovl: initialize error in ovl_copy_xattr 2020-06-17 16:40:32 +02:00
dir.c ovl: relax WARN_ON() on rename to self 2019-12-17 19:56:11 +01:00
export.c ovl: relax WARN_ON() when decoding lower directory file handle 2020-07-22 09:33:12 +02:00
file.c ovl: fix unneeded call to ovl_change_flags() 2020-07-22 09:33:12 +02:00
inode.c ovl: fix value of i_ino for lower hardlink corner case 2020-04-21 09:04:50 +02:00
namei.c ovl: fix lookup failure on multi lower squashfs 2019-12-17 19:56:10 +01:00
overlayfs.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
ovl_entry.h ovl: fix lookup failure on multi lower squashfs 2019-12-17 19:56:10 +01:00
readdir.c ovl: fix wrong WARN_ON() in ovl_cache_update_ino() 2020-02-11 04:35:24 -08:00
super.c ovl: inode reference leak in ovl_is_inuse true case. 2020-07-22 09:33:11 +02:00
util.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00