diff options
author | Michael Halcrow <mhalcrow@us.ibm.com> | 2008-06-05 22:46:02 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-06-06 11:29:09 -0700 |
commit | d3e49afbb66109613c3474f2273f5830ac2dcb09 (patch) | |
tree | d4c3330878741db68f1cac649e070b464ea59204 /drivers | |
parent | c45dcabd2626c56f8c1235df9db065f584f3ac82 (diff) | |
download | kernel_samsung_espresso10-d3e49afbb66109613c3474f2273f5830ac2dcb09.zip kernel_samsung_espresso10-d3e49afbb66109613c3474f2273f5830ac2dcb09.tar.gz kernel_samsung_espresso10-d3e49afbb66109613c3474f2273f5830ac2dcb09.tar.bz2 |
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>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions