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)
committerWilly Tarreau <w@1wt.eu>
Thu, 2 Nov 2017 06:16:17 +0000 (07:16 +0100)
commit9c66c82c5fd868ffd3b6a848ecc487f1061cdc36
treeef74e03f99dedcfa5ab6484ada8a45b0ee291c6d
parentba850927667f326ec400f3bb4e268a101639de1a
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
Cc: stable@vger.kernel.org
Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Willy Tarreau <w@1wt.eu>
fs/ext4/inode.c