aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/ext4/extents.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index bc17ed742845..3e966daaadee 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -524,6 +524,7 @@ ext4_ext_find_extent(struct inode *inode, ext4_lblk_t block,
524 alloc = 1; 524 alloc = 1;
525 } 525 }
526 path[0].p_hdr = eh; 526 path[0].p_hdr = eh;
527 path[0].p_bh = NULL;
527 528
528 i = depth; 529 i = depth;
529 /* walk through the tree */ 530 /* walk through the tree */
@@ -552,12 +553,14 @@ ext4_ext_find_extent(struct inode *inode, ext4_lblk_t block,
552 } 553 }
553 554
554 path[ppos].p_depth = i; 555 path[ppos].p_depth = i;
555 path[ppos].p_hdr = eh;
556 path[ppos].p_ext = NULL; 556 path[ppos].p_ext = NULL;
557 path[ppos].p_idx = NULL; 557 path[ppos].p_idx = NULL;
558 558
559 /* find extent */ 559 /* find extent */
560 ext4_ext_binsearch(inode, path + ppos, block); 560 ext4_ext_binsearch(inode, path + ppos, block);
561 /* if not an empty leaf */
562 if (path[ppos].p_ext)
563 path[ppos].p_block = ext_pblock(path[ppos].p_ext);
561 564
562 ext4_ext_show_path(inode, path); 565 ext4_ext_show_path(inode, path);
563 566