Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=8a146a2b0d6e97941a5c2dc5d8a3ea1e6c3ab997
Commit:     8a146a2b0d6e97941a5c2dc5d8a3ea1e6c3ab997
Parent:     0fd4980fa75acc78c747b1f43d1204f6572a4845
Author:     Michael Halcrow <[EMAIL PROTECTED]>
AuthorDate: Wed Nov 14 16:58:27 2007 -0800
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Wed Nov 14 18:45:36 2007 -0800

    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 <[EMAIL PROTECTED]>
    Reported-by: Eric Sandeen <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 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);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to