android_kernel_xiaomi_sm8350/fs/ecryptfs
Michael Halcrow d3e49afbb6 eCryptfs: remove unnecessary page decrypt call
The page decrypt calls in ecryptfs_write() are both pointless and buggy.
Pointless because ecryptfs_get_locked_page() has already brought the page
up to date, and buggy because prior mmap writes will just be blown away by
the decrypt call.

This patch also removes the declaration of a now-nonexistent function
ecryptfs_write_zeros().

Thanks to Eric Sandeen and David Kleikamp for helping to track this
down.

Eric said:

   fsx w/ mmap dies quickly ( < 100 ops) without this, and survives
   nicely (to millions of ops+) with it in place.

Signed-off-by: Michael Halcrow <mhalcrow@us.ibm.com>
Cc: Eric Sandeen <sandeen@redhat.com>
Cc: Dave Kleikamp <shaggy@austin.ibm.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-06-06 11:29:09 -07:00
..
crypto.c ecryptfs: fix missed mutex_unlock 2008-05-24 09:56:07 -07:00
debug.c
dentry.c
ecryptfs_kernel.h eCryptfs: remove unnecessary page decrypt call 2008-06-06 11:29:09 -07:00
file.c eCryptfs: protect crypt_stat->flags in ecryptfs_open() 2008-04-29 08:06:07 -07:00
inode.c ecryptfs: clean up (un)lock_parent 2008-05-13 08:02:23 -07:00
keystore.c eCryptfs: integrate eCryptfs device handle into the module. 2008-04-29 08:06:07 -07:00
main.c
Makefile eCryptfs: integrate eCryptfs device handle into the module. 2008-04-29 08:06:07 -07:00
messaging.c eCryptfs: make key module subsystem respect namespaces 2008-04-29 08:06:07 -07:00
miscdev.c ecryptfs fixes 2008-05-21 16:55:59 -07:00
mmap.c
netlink.c eCryptfs: make key module subsystem respect namespaces 2008-04-29 08:06:07 -07:00
read_write.c eCryptfs: remove unnecessary page decrypt call 2008-06-06 11:29:09 -07:00
super.c