Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 101091
b: refs/heads/master
c: 1973adc
h: refs/heads/master
i:
  101089: 7eaf234
  101087: 0a98680
v: v3
  • Loading branch information
Shen Feng authored and Theodore Ts'o committed Jul 11, 2008
1 parent a4efb8f commit 85a75dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 787e0981fad97a5ca3d07c7afe115a7e345b2861
refs/heads/master: 1973adcba570c226de840299056e055a3614185e
5 changes: 4 additions & 1 deletion trunk/fs/ext4/extents.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 85a75dd

Please sign in to comment.