Unionfs: set lower file to NULL in file_release
authorErez Zadok <ezk@cs.sunysb.edu>
Wed, 23 Apr 2008 23:33:25 +0000 (19:33 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Wed, 23 Apr 2008 23:33:25 +0000 (19:33 -0400)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/commonfops.c

index 8a75790646748c990da543ff45ecd8602c2fbf9d..0430964896ba0854dca32f50a95759b57a4f9c30 100644 (file)
@@ -719,6 +719,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);
                }