commit b6e8df42d9e1c57845bc11d2f71f21133a67780e
Author: Erez_Zadok <[EMAIL PROTECTED]>
Date: Fri May 4 14:44:10 2007 -0400
optimize branch overlapping test a bit
diff --git a/fs/unionfs/main.c b/fs/unionfs/main.c
index
704b81865a0e6e327b7ce18d71f6e1c15ca48772..5245fb80fe7782a9d82ba1460d32921ff8101e73
100644
--- a/fs/unionfs/main.c
+++ b/fs/unionfs/main.c
@@ -380,10 +380,9 @@ static int parse_dirs_option(struct supe
* branch-overlapping test.
*/
for (i = 0; i < branches; i++) {
+ dent1 = hidden_root_info->lower_paths[i].dentry;
for (j = i + 1; j < branches; j++) {
- dent1 = hidden_root_info->lower_paths[i].dentry;
dent2 = hidden_root_info->lower_paths[j].dentry;
-
if (is_branch_overlap(dent1, dent2)) {
printk(KERN_WARNING "unionfs: branches %d and "
"%d overlap\n", i, j);
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs