Unionfs: update lower mnts on rmdir with copyup
authorRachita Kothiyal <rachita@dewey.fsl.cs.sunysb.edu>
Wed, 2 Apr 2008 20:40:09 +0000 (16:40 -0400)
committerRachita Kothiyal <rachita@dewey.fsl.cs.sunysb.edu>
Wed, 2 Apr 2008 20:40:09 +0000 (16:40 -0400)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/unlink.c

index c77f4308f86caf361194bc383b37a4245b4e7882..7242b231cf87dbdd21b4c2ae8b06df31ded71ea1 100644 (file)
@@ -288,6 +288,8 @@ out:
                    !unionfs_lower_inode_idx(inode, dend))
                        ibstart(inode) = ibend(inode) = -1;
                d_drop(dentry);
+               /* update our lower vfsmnts, in case a copyup took place */
+               unionfs_postcopyup_setmnt(dentry);
        }
 
        if (namelist)