]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ovl: store upper real file in ovl_file struct
authorAmir Goldstein <amir73il@gmail.com>
Mon, 14 Oct 2024 15:25:26 +0000 (17:25 +0200)
committerAmir Goldstein <amir73il@gmail.com>
Fri, 15 Nov 2024 07:56:48 +0000 (08:56 +0100)
commit18e48d0e2c7b137be532fedbb5fba31b43e043b2
treeaf835bb98e9193dd3f5939972c3b591117373fa9
parent87a8a76c34a2ae6f667cc33249dc99705e363d1f
ovl: store upper real file in ovl_file struct

When an overlayfs file is opened as lower and then the file is copied up,
every operation on the overlayfs open file will open a temporary backing
file to the upper dentry and close it at the end of the operation.

Store the upper real file along side the original (lower) real file in
ovl_file instead of opening a temporary upper file on every operation.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
fs/overlayfs/file.c