lkml.org 
[lkml]   [2008]   [Apr]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 05/12] Unionfs: stop as soon as first writeable branch is found
Date
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
---
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


\
 
 \ /
  Last update: 2008-04-26 00:27    [W:0.679 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site