aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ecryptfs/read_write.c
diff options
context:
space:
mode:
authorMichael Halcrow <mhalcrow@us.ibm.com>2007-11-14 19:58:27 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-11-14 21:45:36 -0500
commit8a146a2b0d6e97941a5c2dc5d8a3ea1e6c3ab997 (patch)
treec9bc95bcb68243ea7068307570b9dcec0d620cff /fs/ecryptfs/read_write.c
parent0fd4980fa75acc78c747b1f43d1204f6572a4845 (diff)
eCryptfs: cast page->index to loff_t instead of off_t
page->index should be cast to loff_t instead of off_t. Signed-off-by: Michael Halcrow <mhalcrow@us.ibm.com> Reported-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ecryptfs/read_write.c')
-rw-r--r--fs/ecryptfs/read_write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ecryptfs/read_write.c b/fs/ecryptfs/read_write.c
index 2150edf9a58e..6b7474a4336a 100644
--- a/fs/ecryptfs/read_write.c
+++ b/fs/ecryptfs/read_write.c
@@ -87,7 +87,7 @@ int ecryptfs_write_lower_page_segment(struct inode *ecryptfs_inode,
87 loff_t offset; 87 loff_t offset;
88 int rc; 88 int rc;
89 89
90 offset = ((((off_t)page_for_lower->index) << PAGE_CACHE_SHIFT) 90 offset = ((((loff_t)page_for_lower->index) << PAGE_CACHE_SHIFT)
91 + offset_in_page); 91 + offset_in_page);
92 virt = kmap(page_for_lower); 92 virt = kmap(page_for_lower);
93 rc = ecryptfs_write_lower(ecryptfs_inode, virt, offset, size); 93 rc = ecryptfs_write_lower(ecryptfs_inode, virt, offset, size);