vfs: make open_with_fake_path() not contribute to nr_files
[linux-block.git] / include / linux / fs.h
index 5ce2b413abc6baf315a0dbd781e8a68d8ec27927..e1884840d556ae895b93292e5a14dda82fbcb8b6 100644 (file)
@@ -156,6 +156,9 @@ typedef int (dio_iodone_t)(struct kiocb *iocb, loff_t offset,
 /* File is capable of returning -EAGAIN if I/O will block */
 #define FMODE_NOWAIT   ((__force fmode_t)0x8000000)
 
+/* File does not contribute to nr_files count */
+#define FMODE_NOACCOUNT        ((__force fmode_t)0x20000000)
+
 /*
  * Flag for rw_copy_check_uvector and compat_rw_copy_check_uvector
  * that indicates that they should check the contents of the iovec are