WSL2-Linux-Kernel/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
..
Makefile eCryptfs: integrate eCryptfs device handle into the module. 2008-04-29 08:06:07 -07:00
crypto.c ecryptfs: fix missed mutex_unlock 2008-05-24 09:56:07 -07:00
debug.c eCryptfs: update comment and debug statement 2007-10-16 09:43:11 -07:00
dentry.c eCryptfs: Swap dput() and mntput() 2008-03-19 18:53:36 -07:00
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 ecryptfs: replace remaining __FUNCTION__ occurrences 2008-04-29 08:06:06 -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 ecryptfs: replace remaining __FUNCTION__ occurrences 2008-04-29 08:06:06 -07:00
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 ecryptfs: remove debug as mount option, and warn if set via modprobe 2008-02-06 10:41:12 -08:00