Richard Weinberger 5996559320 ubifs: Fix synced_i_size calculation for xattr inodes
In ubifs_jnl_update() we sync parent and child inodes to the flash,
in case of xattrs, the parent inode (AKA host inode) has a non-zero
data_len. Therefore we need to adjust synced_i_size too.

This issue was reported by ubifs self tests unter a xattr related work
load.
UBIFS error (ubi0:0 pid 1896): dbg_check_synced_i_size: ui_size is 4, synced_i_size is 0, but inode is clean
UBIFS error (ubi0:0 pid 1896): dbg_check_synced_i_size: i_ino 65, i_mode 0x81a4, i_size 4

Cc: <stable@vger.kernel.org>
Fixes: 1e51764a3c2a ("UBIFS: add new flash file system")
Signed-off-by: Richard Weinberger <richard@nod.at>
2018-08-15 00:06:15 +02:00
..
2012-08-31 17:32:58 +03:00
2018-06-07 15:53:15 +02:00
2017-07-14 22:49:06 +02:00
2018-06-07 15:53:15 +02:00
2018-06-12 16:19:22 -07:00
2018-04-04 23:48:10 +02:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
2016-12-12 23:07:38 +01:00