Skip to content

Commit

Permalink
ext4: use correct depth value
Browse files Browse the repository at this point in the history
Inode's depth can be changed from here:
ext4_ext_try_to_merge() ->ext4_ext_try_to_merge_up()
We must use correct value.

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Jan Kara <jack@suse.cz>
  • Loading branch information
Dmitry Monakhov authored and tytso committed Jul 28, 2014
1 parent 4b1f166 commit 29faed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ext4/extents.c
Original file line number Diff line number Diff line change
Expand Up @@ -3254,7 +3254,7 @@ static int ext4_split_extent_at(handle_t *handle,

fix_extent_len:
ex->ee_len = orig_ex.ee_len;
ext4_ext_dirty(handle, inode, path + depth);
ext4_ext_dirty(handle, inode, path + path->p_depth);
return err;
}

Expand Down

0 comments on commit 29faed1

Please sign in to comment.