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)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 22 May 2017 02:36:23 +0000 (22:36 -0400)
commit887a9730614727c4fff7cb756711b190593fc1df
tree9d208659802a8a11add61a841911a2c7b6d69971
parent9651e6b2e20648d04d5e1fe6479a3056047e8781
ext4: keep existing extra fields when inode expands

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

Fixes: 6dd4ee7cab7e # v2.6.23
Cc: stable@vger.kernel.org
Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/inode.c