Skip to content
Commit d3b1084d authored by Miklos Szeredi's avatar Miklos Szeredi
Browse files

vfs: make open_with_fake_path() not contribute to nr_files



Stacking file operations in overlay will store an extra open file for each
overlay file opened.

The overhead is just that of "struct file" which is about 256bytes, because
overlay already pins an extra dentry and inode when the file is open, which
add up to a much larger overhead.

For fear of breaking working setups, don't start accounting the extra file.

Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent 51e6ce82
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment