From 85a75dd5e879f35bda31ae443a8b116dc57668d0 Mon Sep 17 00:00:00 2001 From: Shen Feng Date: Fri, 11 Jul 2008 19:27:31 -0400 Subject: [PATCH] --- yaml --- r: 101091 b: refs/heads/master c: 1973adcba570c226de840299056e055a3614185e h: refs/heads/master i: 101089: 7eaf234bd1a46b1b73ea9560737a8713b2ef7938 101087: 0a9868021f60e7c2645d899b5483818c84a268cb v: v3 --- [refs] | 2 +- trunk/fs/ext4/extents.c | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index d27d4c485db6..bd05ac0886af 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 787e0981fad97a5ca3d07c7afe115a7e345b2861 +refs/heads/master: 1973adcba570c226de840299056e055a3614185e diff --git a/trunk/fs/ext4/extents.c b/trunk/fs/ext4/extents.c index bc17ed742845..3e966daaadee 100644 --- a/trunk/fs/ext4/extents.c +++ b/trunk/fs/ext4/extents.c @@ -524,6 +524,7 @@ ext4_ext_find_extent(struct inode *inode, ext4_lblk_t block, alloc = 1; } path[0].p_hdr = eh; + path[0].p_bh = NULL; i = depth; /* walk through the tree */ @@ -552,12 +553,14 @@ ext4_ext_find_extent(struct inode *inode, ext4_lblk_t block, } path[ppos].p_depth = i; - path[ppos].p_hdr = eh; path[ppos].p_ext = NULL; path[ppos].p_idx = NULL; /* find extent */ ext4_ext_binsearch(inode, path + ppos, block); + /* if not an empty leaf */ + if (path[ppos].p_ext) + path[ppos].p_block = ext_pblock(path[ppos].p_ext); ext4_ext_show_path(inode, path);