Unionfs: update parent mnt on unlink
authorErez Zadok <ezk@cs.sunysb.edu>
Thu, 11 Sep 2008 03:41:02 +0000 (23:41 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Fri, 12 Aug 2011 02:38:36 +0000 (22:38 -0400)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/unlink.c

index 623f68d9cb084c7d9e802ebfd33e25e14179b1e4..fb236cdc728b306138255c82d0acac691286e881 100644 (file)
@@ -146,6 +146,7 @@ int unionfs_unlink(struct inode *dir, struct dentry *dentry)
        /* call d_drop so the system "forgets" about us */
        if (!err) {
                unionfs_postcopyup_release(dentry);
+               unionfs_postcopyup_setmnt(dentry->d_parent);
                if (inode->i_nlink == 0) /* drop lower inodes */
                        iput_lowers_all(inode, false);
                d_drop(dentry);