backing file: free directly
[sfrench/cifs-2.6.git] / fs / file.c
index 4eb0266316732a78c80e8dca1cc636b622f3cc5a..1a475d7d636e03b1c4a252399132fa67db0bba18 100644 (file)
--- a/fs/file.c
+++ b/fs/file.c
@@ -604,6 +604,9 @@ void fd_install(unsigned int fd, struct file *file)
        struct files_struct *files = current->files;
        struct fdtable *fdt;
 
+       if (WARN_ON_ONCE(unlikely(file->f_mode & FMODE_BACKING)))
+               return;
+
        rcu_read_lock_sched();
 
        if (unlikely(files->resize_in_progress)) {