]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
ovl: take mnt_want_write() for removing impure xattr
authorAmir Goldstein <amir73il@gmail.com>
Wed, 3 Jan 2018 16:54:42 +0000 (18:54 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Fri, 19 Jan 2018 16:43:24 +0000 (17:43 +0100)
commita5a927a7c82e28ea76599dee4019c41e372c911f
treebafff47b89c2e07707dc6f4764d50f7292883989
parent2ba9d57e65044859f7ff133bcb0a902769bf3bc6
ovl: take mnt_want_write() for removing impure xattr

The optimization in ovl_cache_get_impure() that tries to remove an
unneeded "impure" xattr needs to take mnt_want_write() on upper fs.

Fixes: 4edb83bb1041 ("ovl: constant d_ino for non-merge dirs")
Cc: <stable@vger.kernel.org> #v4.14
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/readdir.c