aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ecryptfs/mmap.c
diff options
context:
space:
mode:
authorMichael Halcrow <mhalcrow@us.ibm.com>2007-10-16 04:28:10 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-16 12:43:12 -0400
commitd7cdc5febf9f2664755002c3a2f84bd348389fe9 (patch)
treead770ac2031d87474220cc20eb7b99a246dea8bb /fs/ecryptfs/mmap.c
parent4981e081cfe2c3f4abcfa3924ebd999cdbed4914 (diff)
eCryptfs: update metadata read/write functions
Update the metadata read/write functions and grow_file() to use the read_write.c routines. Do not open another lower file; use the persistent lower file instead. Provide a separate function for crypto.c::ecryptfs_read_xattr_region() to get to the lower xattr without having to go through the eCryptfs getxattr. Signed-off-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>
Diffstat (limited to 'fs/ecryptfs/mmap.c')
-rw-r--r--fs/ecryptfs/mmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ecryptfs/mmap.c b/fs/ecryptfs/mmap.c
index 9b621108d5c1..60e635eddc77 100644
--- a/fs/ecryptfs/mmap.c
+++ b/fs/ecryptfs/mmap.c
@@ -307,7 +307,7 @@ static int ecryptfs_readpage(struct file *file, struct page *page)
307 memset(page_virt, 0, PAGE_CACHE_SIZE); 307 memset(page_virt, 0, PAGE_CACHE_SIZE);
308 if (page->index == 0) { 308 if (page->index == 0) {
309 rc = ecryptfs_read_xattr_region( 309 rc = ecryptfs_read_xattr_region(
310 page_virt, file->f_path.dentry); 310 page_virt, page->mapping->host);
311 set_header_info(page_virt, crypt_stat); 311 set_header_info(page_virt, crypt_stat);
312 } 312 }
313 kunmap_atomic(page_virt, KM_USER0); 313 kunmap_atomic(page_virt, KM_USER0);