android_kernel_oneplus_msm8998/fs/ubifs
Richard Weinberger dfd7543a67 ubifs: Fix synced_i_size calculation for xattr inodes
commit 59965593205fa4044850d35ee3557cf0b7edcd14 upstream.

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: 1e51764a3c ("UBIFS: add new flash file system")
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-09 20:04:35 +02:00
..
budget.c
commit.c
compress.c
debug.c
debug.h
dir.c ubifs: Fix regression in ubifs_readdir() 2016-11-10 16:36:33 +01:00
file.c
find.c
gc.c
io.c
ioctl.c
journal.c ubifs: Fix synced_i_size calculation for xattr inodes 2018-09-09 20:04:35 +02:00
Kconfig
key.h
log.c
lprops.c ubifs: Fix memory leak in lprobs self-check 2018-09-09 20:04:35 +02:00
lpt.c
lpt_commit.c
Makefile
master.c
misc.h
orphan.c
recovery.c
replay.c
sb.c
scan.c
shrinker.c
super.c ubifs: Check ubifs_wbuf_sync() return code 2018-04-24 09:32:05 +02:00
tnc.c ubifs: Fix journal replay wrt. xattr nodes 2017-01-26 08:23:48 +01:00
tnc_commit.c
tnc_misc.c
ubifs-media.h
ubifs.h
xattr.c ubifs: Fix xattr_names length in exit paths 2016-10-28 03:01:35 -04:00