ext4: keep existing extra fields when inode expands
authorKonstantin Khlebnikov <khlebnikov@yandex-team.ru>
Mon, 22 May 2017 02:36:23 +0000 (22:36 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jun 2017 11:16:22 +0000 (13:16 +0200)
commit7b9694cb7bf2fcd2b443807423b4b09fbbc3c4ff
treeecf864ba4b0fb927dae1beb7768a8dea121ef3a2
parent08dc390b2745e0eb26375758534f52ce4eb983ae
ext4: keep existing extra fields when inode expands

commit 887a9730614727c4fff7cb756711b190593fc1df upstream.

ext4_expand_extra_isize() should clear only space between old and new
size.

Fixes: 6dd4ee7cab7e # v2.6.23
Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/inode.c