• Michael Halcrow's avatar
    eCryptfs: remove unnecessary page decrypt call · d3e49afb
    Michael Halcrow authored
    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: default avatarMichael 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: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    d3e49afb
read_write.c 11.3 KB