vfs: make open_with_fake_path() not contribute to nr_files
authorMiklos Szeredi <mszeredi@redhat.com>
Wed, 18 Jul 2018 13:44:40 +0000 (15:44 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Wed, 18 Jul 2018 13:44:40 +0000 (15:44 +0200)
commitd3b1084dfd629ef89bc1c4bab95e5cb87e7d08c2
treefc662e9a1ce492bbb5e090b7ecc375a1d81bd280
parent51e6ce820bd43e51883eddf291bd830217bb6382
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: Miklos Szeredi <mszeredi@redhat.com>
fs/file_table.c
fs/internal.h
fs/open.c
include/linux/fs.h