From: Erez Zadok Date: Sun, 6 Apr 2008 01:02:23 +0000 (-0400) Subject: Unionfs: stop as soon as first writeable branch is found X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=b5c477f8ebafe22976718a0a204a8f9b93bee313;p=unionfs-3.1.y.git Unionfs: stop as soon as first writeable branch is found Signed-off-by: Erez Zadok --- diff --git a/fs/unionfs/inode.c b/fs/unionfs/inode.c index 582d08b53fd..a1d7aafe43a 100644 --- a/fs/unionfs/inode.c +++ b/fs/unionfs/inode.c @@ -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