Unionfs: set lower file to NULL in file_release
authorErez Zadok <ezk@cs.sunysb.edu>
Wed, 23 Apr 2008 23:10:31 +0000 (19:10 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Sat, 19 Jul 2008 03:23:00 +0000 (23:23 -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);
                }