commit 4e231ad96b1586cb9e26e44d2061a9d39e004251
Author: Yiannis Pericleous <[EMAIL PROTECTED]>
Date: Tue Mar 13 13:22:52 2007 -0400
purge dir cache bug
diff --git a/fs/unionfs/unlink.c b/fs/unionfs/unlink.c
index 5d17c67..5fb8088 100644
--- a/fs/unionfs/unlink.c
+++ b/fs/unionfs/unlink.c
@@ -128,16 +128,17 @@ static int unionfs_do_unlink(struct inode *dir, struct
dentry *dentry)
err = odf_create_wh(dentry);
if (err)
goto out;
- /* we want to update mtime here, since if the file to
- * be removed was only on a rd only branch, then since
- * the mtime of that branch has not changed, so the
- * mtime of the upper file is not updated
- */
- odf_purge_dir_cache(dentry->d_parent);
- attr.ia_mtime = current_kernel_time();
- attr.ia_valid = ATTR_MTIME | ATTR_MTIME_SET | ATTR_FORCE;
- err = notify_change(dentry->d_parent, &attr);
}
+
+ /* we want to update mtime here, since if the file to
+ * be removed was only on a rd only branch, then since
+ * the mtime of that branch has not changed, so the
+ * mtime of the upper file is not updated
+ */
+ odf_purge_dir_cache(dentry->d_parent);
+ attr.ia_mtime = current_kernel_time();
+ attr.ia_valid = ATTR_MTIME | ATTR_MTIME_SET | ATTR_FORCE;
+ err = notify_change(dentry->d_parent, &attr);
out:
if (!err)
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs