From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erez Zadok Subject: [PATCH 05/12] Unionfs: stop as soon as first writeable branch is found Date: Fri, 25 Apr 2008 18:19:01 -0400 Message-ID: <1209161951873-git-send-email-ezk@cs.sunysb.edu> References: <12091619483888-git-send-email-ezk@cs.sunysb.edu> Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, viro@ftp.linux.org.uk, hch@infradead.org, Erez Zadok To: akpm@linux-foundation.org Return-path: Received: from filer.fsl.cs.sunysb.edu ([130.245.126.2]:40627 "EHLO filer.fsl.cs.sunysb.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933038AbYDYWUd (ORCPT ); Fri, 25 Apr 2008 18:20:33 -0400 In-Reply-To: <12091619483888-git-send-email-ezk@cs.sunysb.edu> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Signed-off-by: Erez Zadok --- fs/unionfs/inode.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/fs/unionfs/inode.c b/fs/unionfs/inode.c index 582d08b..a1d7aaf 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 -- 1.5.2.2