lkml.org 
[lkml]   [2012]   [Jul]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] btrfs-progs: rework the code logic
Date
From: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>

Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
---
extent-cache.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/extent-cache.c b/extent-cache.c
index 3dd6434..a5084ee 100644
--- a/extent-cache.c
+++ b/extent-cache.c
@@ -136,10 +136,10 @@ struct cache_extent *find_first_cache_extent(struct cache_tree *tree,
struct cache_extent *entry;

ret = __tree_search(&tree->root, start, 1, &prev);
- if (!ret)
+ if (!ret) {
ret = prev;
- if (!ret)
return NULL;
+ }
entry = rb_entry(ret, struct cache_extent, rb_node);
return entry;
}
--
1.7.6


\
 
 \ /
  Last update: 2012-07-05 10:21    [W:0.035 / U:9.060 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site