Unionfs: stop as soon as first writeable branch is found
authorErez Zadok <ezk@cs.sunysb.edu>
Sun, 6 Apr 2008 01:02:23 +0000 (21:02 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Mon, 12 Jan 2009 23:20:55 +0000 (18:20 -0500)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/inode.c

index 582d08b53fd7aef2187935dece731a22fbda8dd2..a1d7aafe43a9725d6482a8ecb4e75fa61e71dda8 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