Unionfs: set lower file to NULL in file_release
authorErez Zadok <ezk@cs.sunysb.edu>
Wed, 23 Apr 2008 23:05:50 +0000 (19:05 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Fri, 24 Jun 2011 18:07:49 +0000 (14:07 -0400)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/commonfops.c

index 82b0eea47347b16eabee42739692bed481e4ad3a..631e081e792b1ea325c4e74737bebf30a2d63276 100644 (file)
@@ -717,6 +717,7 @@ int unionfs_file_release(struct inode *inode, struct file *file)
                lower_file = unionfs_lower_file_idx(file, bindex);
 
                if (lower_file) {
+                       unionfs_set_lower_file_idx(file, bindex, NULL);
                        fput(lower_file);
                        branchput(sb, bindex);
                }