Unionfs: stop as soon as first writeable branch is found
authorErez Zadok <ezk@cs.sunysb.edu>
Tue, 15 Apr 2008 23:54:44 +0000 (19:54 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Tue, 15 Apr 2008 23:54:44 +0000 (19:54 -0400)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/inode.c

index fd78681e09b293df4facd7484c77776cff288d63..e27cdd56898fcb0b652c5cfcf6cad517707dcde0 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