]> git.baikalelectronics.ru Git - kernel.git/commit
ecryptfs: fix fsx data corruption problems
authorEric Sandeen <sandeen@redhat.com>
Tue, 18 Dec 2007 00:20:10 +0000 (16:20 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 18 Dec 2007 03:28:17 +0000 (19:28 -0800)
commit03c60dcc6b3be341693f6e6a8fe644f200b7764c
treee2409b01431e230369182d3a450dcd9c2c6beb0a
parenteb3b83a3725ff4a011e4190e50cd5c9f24b06613
ecryptfs: fix fsx data corruption problems

ecryptfs in 2.6.24-rc3 wasn't surviving fsx for me at all, dying after 4
ops.  Generally, encountering problems with stale data and improperly
zeroed pages.  An extending truncate + write for example would expose stale
data.

With the changes below I got to a million ops and beyond with all mmap ops
disabled - mmap still needs work.  (A version of this patch on a RHEL5
kernel ran for over 110 million fsx ops)

I added a few comments as well, to the best of my understanding
as I read through the code.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Acked-by: Michael Halcrow <mhalcrow@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ecryptfs/mmap.c
fs/ecryptfs/read_write.c