summaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2018-07-18 09:44:40 -0400
committerMiklos Szeredi <mszeredi@redhat.com>2018-07-18 09:44:40 -0400
commitd3b1084dfd629ef89bc1c4bab95e5cb87e7d08c2 (patch)
treefc662e9a1ce492bbb5e090b7ecc375a1d81bd280 /include/linux/fs.h
parent51e6ce820bd43e51883eddf291bd830217bb6382 (diff)
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 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 5ce2b413abc6..e1884840d556 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -156,6 +156,9 @@ typedef int (dio_iodone_t)(struct kiocb *iocb, loff_t offset,
156/* File is capable of returning -EAGAIN if I/O will block */ 156/* File is capable of returning -EAGAIN if I/O will block */
157#define FMODE_NOWAIT ((__force fmode_t)0x8000000) 157#define FMODE_NOWAIT ((__force fmode_t)0x8000000)
158 158
159/* File does not contribute to nr_files count */
160#define FMODE_NOACCOUNT ((__force fmode_t)0x20000000)
161
159/* 162/*
160 * Flag for rw_copy_check_uvector and compat_rw_copy_check_uvector 163 * Flag for rw_copy_check_uvector and compat_rw_copy_check_uvector
161 * that indicates that they should check the contents of the iovec are 164 * that indicates that they should check the contents of the iovec are