]> git.baikalelectronics.ru Git - kernel.git/commit
ovl: fix unneeded call to ovl_change_flags()
authorAmir Goldstein <amir73il@gmail.com>
Thu, 18 Jun 2020 15:43:53 +0000 (18:43 +0300)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 16 Jul 2020 05:24:47 +0000 (07:24 +0200)
commit25b8fc580ed5f3933e7fe10aea26856080b585a9
tree4619f9de2a2051e3212516b7a5321a4d14502684
parent58cb3125af971af20aa93ee46259391b3998d687
ovl: fix unneeded call to ovl_change_flags()

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: 2f65ae83fdca ("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>
fs/overlayfs/file.c