* [PATCH] eCryptfs: Cast page->index to loff_t instead of off_t
@ 2007-11-02 22:11 Michael Halcrow
0 siblings, 0 replies; only message in thread
From: Michael Halcrow @ 2007-11-02 22:11 UTC (permalink / raw)
To: Andrew Morton; +Cc: ecryptfs-devel, LKML, Eric Sandeen
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>
---
fs/ecryptfs/read_write.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/ecryptfs/read_write.c b/fs/ecryptfs/read_write.c
index 2150edf..6b7474a 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,
loff_t offset;
int rc;
- offset = ((((off_t)page_for_lower->index) << PAGE_CACHE_SHIFT)
+ offset = ((((loff_t)page_for_lower->index) << PAGE_CACHE_SHIFT)
+ offset_in_page);
virt = kmap(page_for_lower);
rc = ecryptfs_write_lower(ecryptfs_inode, virt, offset, size);
--
1.5.1.6
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-11-02 22:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-02 22:11 [PATCH] eCryptfs: Cast page->index to loff_t instead of off_t Michael Halcrow
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox