commit 15d75acaba6abbeae5f1e57eea0f362d0692a87b
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 704b818..5245fb8 100644
--- a/fs/unionfs/main.c
+++ b/fs/unionfs/main.c
@@ -380,10 +380,9 @@ static int parse_dirs_option(struct super_block *sb, 
struct unionfs_dentry_info
         * 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

Reply via email to