Unionfs: stop as soon as first writeable branch is found
authorErez Zadok <ezk@cs.sunysb.edu>
Tue, 15 Apr 2008 17:25:21 +0000 (13:25 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Sat, 19 Jul 2008 03:22:59 +0000 (23:22 -0400)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/inode.c

index f6011290ee563a84992182370fe192f5d6f94a39..95347fc5fb174bcf6e963d31bc07198ed62f70c1 100644 (file)
@@ -128,6 +128,8 @@ begin:
                err = check_for_whiteout(dentry, lower_dentry);
                if (err)
                        continue;
+               /* if get here, we can write to the branch */
+               break;
        }
        /*
         * If istart wasn't already branch 0, and we got any error, then try