]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fs: get mnt_writers count for an open backing file's real path
authorAmir Goldstein <amir73il@gmail.com>
Mon, 9 Oct 2023 15:37:10 +0000 (18:37 +0300)
committerChristian Brauner <brauner@kernel.org>
Thu, 19 Oct 2023 09:03:15 +0000 (11:03 +0200)
commit83bc1d294130cc471a89ce10770daa281a93fcb0
tree80c9b2ce727b754f9b3dea6b29148f75254f5e1d
parent6c4d1c99d2ad5e12b897da482ca8305b929cb9ce
fs: get mnt_writers count for an open backing file's real path

A writeable mapped backing file can perform writes to the real inode.
Therefore, the real path mount must be kept writable so long as the
writable map exists.

This may not be strictly needed for ovelrayfs private upper mount,
but it is correct to take the mnt_writers count in the vfs helper.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Link: https://lore.kernel.org/r/20231009153712.1566422-2-amir73il@gmail.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/internal.h
fs/open.c