vfs: make open_with_fake_path() not contribute to nr_files
[linux-block.git] / fs / open.c
index dd15711eb6582d123468f68399dd1d94e478a920..9c6617dbb2c06a4705b0fe2d66f7dcbc688172de 100644 (file)
--- a/fs/open.c
+++ b/fs/open.c
@@ -928,7 +928,7 @@ EXPORT_SYMBOL(dentry_open);
 struct file *open_with_fake_path(const struct path *path, int flags,
                                struct inode *inode, const struct cred *cred)
 {
-       struct file *f = alloc_empty_file(flags, cred);
+       struct file *f = alloc_empty_file_noaccount(flags, cred);
        if (!IS_ERR(f)) {
                int error;