alistair23-linux/fs/ubifs
David Oberhollenzer 59a74990f8 ubifs: Fix data node size for truncating uncompressed nodes
Currently, the function truncate_data_node only updates the
destination data node size if compression is used. For
uncompressed nodes, the old length is incorrectly retained.

This patch makes sure that the length is correctly set when
compression is disabled.

Fixes: 7799953b34 ("ubifs: Implement encrypt/decrypt for all IO")
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Signed-off-by: Richard Weinberger <richard@nod.at>
2017-07-14 22:49:06 +02:00
..
budget.c
commit.c
compress.c
crypto.c fscrypt: constify struct fscrypt_operations 2017-02-08 10:59:57 -05:00
debug.c ubifs: Fix cut and paste error on sb type comparisons 2017-05-08 20:48:41 +02:00
debug.h
dir.c ubifs: Don't encrypt special files on creation 2017-07-14 22:49:05 +02:00
file.c ubifs: don't bother checking for encryption key in ->mmap() 2017-07-05 23:52:50 +02:00
find.c
gc.c ubifs: Remove some dead code 2016-12-12 23:06:28 +01:00
io.c ubifs: Use dirty_writeback_interval value for wbuf timer 2016-12-12 23:06:24 +01:00
ioctl.c This pull request contains updates for both UBI and UBIFS: 2017-05-13 10:23:12 -07:00
journal.c ubifs: Fix data node size for truncating uncompressed nodes 2017-07-14 22:49:06 +02:00
Kconfig ubifs: Add CONFIG_UBIFS_FS_SECURITY to disable/enable security labels 2017-05-08 20:48:23 +02:00
key.h ubifs: Implement encrypted filenames 2016-12-12 23:07:38 +01:00
log.c
lprops.c
lpt.c
lpt_commit.c
Makefile ubifs: Add skeleton for fscrypto 2016-12-12 23:07:38 +01:00
master.c
misc.c
misc.h fs: ubifs: replace CURRENT_TIME_SEC with current_time 2017-05-08 17:15:15 -07:00
orphan.c
recovery.c ubifs: Remove unnecessary assignment 2017-05-08 20:48:47 +02:00
replay.c ubifs: Implement encrypted filenames 2016-12-12 23:07:38 +01:00
sb.c fs: ubifs: replace CURRENT_TIME_SEC with current_time 2017-05-08 17:15:15 -07:00
scan.c
shrinker.c
super.c ubifs: Unexport ubifs_inode_slab 2017-07-14 22:48:43 +02:00
tnc.c ubifs: Correctly evict xattr inodes 2017-07-14 22:49:04 +02:00
tnc_commit.c
tnc_misc.c
ubifs-media.h ubifs: Raise write version to 5 2016-12-12 23:07:38 +01:00
ubifs.h ubifs: Correctly evict xattr inodes 2017-07-14 22:49:04 +02:00
xattr.c ubifs: Correctly evict xattr inodes 2017-07-14 22:49:04 +02:00