summaryrefslogtreecommitdiffstats
path: root/fs/internal.h
diff options
context:
space:
mode:
authorMiklos Szeredi2018-07-18 15:44:40 +0200
committerMiklos Szeredi2018-07-18 15:44:40 +0200
commitd3b1084dfd629ef89bc1c4bab95e5cb87e7d08c2 (patch)
treefc662e9a1ce492bbb5e090b7ecc375a1d81bd280 /fs/internal.h
parentMerge branch 'dedupe-cleanup' into overlayfs-next (diff)
downloadkernel-qcow2-linux-d3b1084dfd629ef89bc1c4bab95e5cb87e7d08c2.tar.gz
kernel-qcow2-linux-d3b1084dfd629ef89bc1c4bab95e5cb87e7d08c2.tar.xz
kernel-qcow2-linux-d3b1084dfd629ef89bc1c4bab95e5cb87e7d08c2.zip
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>
Diffstat (limited to 'fs/internal.h')
-rw-r--r--fs/internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/internal.h b/fs/internal.h
index 52a346903748..442098fa0a84 100644
--- a/fs/internal.h
+++ b/fs/internal.h
@@ -94,6 +94,7 @@ extern void chroot_fs_refs(const struct path *, const struct path *);
* file_table.c
*/
extern struct file *alloc_empty_file(int, const struct cred *);
+extern struct file *alloc_empty_file_noaccount(int, const struct cred *);
/*
* super.c