ref: d8bfd3ab2b5093f29f9a3dca61a219e339ba989a
parent: 1f6b6e87c63d9af250f8790891205146952757fa
author: root <[email protected]>
date: Fri Oct 9 13:09:43 EDT 2015
FIX: ea_size accounting is not correct after resizing.
--- a/lwext4/ext4_xattr.c
+++ b/lwext4/ext4_xattr.c
@@ -434,8 +434,10 @@
if (ret != EOK) {
return ret;
}
- xattr_ref->ea_size -=
- EXT4_XATTR_SIZE(item->data_size) + EXT4_XATTR_SIZE(new_data_size);
+ xattr_ref->ea_size =
+ xattr_ref->ea_size -
+ EXT4_XATTR_SIZE(item->data_size) +
+ EXT4_XATTR_SIZE(new_data_size);
xattr_ref->dirty = true;
return ret;
}