From: Dmitry Monakhov Date: Mon, 28 Jul 2014 02:30:29 +0000 (-0400) Subject: ext4: use correct depth value X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=29faed1638e6b2ace499e1b848cc3337ef6a6ad5;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ext4: use correct depth value 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 Signed-off-by: Theodore Ts'o Reviewed-by: Jan Kara --- diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index ee93f82630c6..6950babecde7 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c @@ -3254,7 +3254,7 @@ out: 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; }