drop save-goal-location-struct-ext4_allocation_context.ac_g_ex
[ext4-patch-queue.git] / use-correct-depth-value
blobce3b2ac2f45b7c682aa46f0affa34dc534e8667f
1 ext4: use correct depth value
3 From: Dmitry Monakhov <dmonakhov@openvz.org>
5 Inode's depth can be changed from here:
6 ext4_ext_try_to_merge() ->ext4_ext_try_to_merge_up()
7 We must use correct value.
9 Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
10 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
11 Reviewed-by: Jan Kara <jack@suse.cz>
12 ---
13  fs/ext4/extents.c |    2 +-
14  1 files changed, 1 insertions(+), 1 deletions(-)
16 diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
17 index ee93f82..6950bab 100644
18 --- a/fs/ext4/extents.c
19 +++ b/fs/ext4/extents.c
20 @@ -3254,7 +3254,7 @@ out:
22  fix_extent_len:
23         ex->ee_len = orig_ex.ee_len;
24 -       ext4_ext_dirty(handle, inode, path + depth);
25 +       ext4_ext_dirty(handle, inode, path + path->p_depth);
26         return err;
27  }
29 -- 
30 1.7.1
33 To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
34 the body of a message to majordomo@vger.kernel.org
35 More majordomo info at  http://vger.kernel.org/majordomo-info.html