Tahsin Erdogan 32aaf19420 ext4: add missing xattr hash update
When updating an extended attribute, if the padded value sizes are the
same, a shortcut is taken to avoid the bulk of the work. This was fine
until the xattr hash update was moved inside ext4_xattr_set_entry().
With that change, the hash update got missed in the shortcut case.

Thanks to ZhangYi (yizhang089@gmail.com) for root causing the problem.

Fixes: daf8328172df ("ext4: eliminate xattr entry e_hash recalculation for removes")

Reported-by: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Tahsin Erdogan <tahsin@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2017-08-14 08:30:06 -04:00
..
2015-04-02 23:47:42 -04:00
2016-09-30 02:14:56 -04:00
2017-08-06 00:07:01 -04:00
2017-04-30 00:36:53 -04:00
2017-02-02 11:52:14 -05:00
2017-06-21 21:10:32 -04:00
2017-04-30 00:36:53 -04:00
2017-08-14 08:29:18 -04:00
2016-11-01 09:43:26 -06:00
2017-06-22 11:31:25 -04:00
2017-08-06 00:07:01 -04:00
2017-06-09 09:27:32 -06:00
2017-04-03 01:05:58 -04:00
2017-08-14 08:30:06 -04:00