From: Erez_Zadok Date: Fri, 4 May 2007 18:44:02 +0000 (-0400) Subject: optimize branch overlapping test a bit X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=8d57c6204934dc2bed79f977e073f7750eb5f7cb;p=unionfs-3.6.y.git optimize branch overlapping test a bit --- diff --git a/fs/unionfs/main.c b/fs/unionfs/main.c index 772319025c4..ffcd04074d5 100644 --- a/fs/unionfs/main.c +++ b/fs/unionfs/main.c @@ -366,10 +366,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);