diff options
Diffstat (limited to 'fs/freevxfs')
-rw-r--r-- | fs/freevxfs/vxfs_immed.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/freevxfs/vxfs_immed.c b/fs/freevxfs/vxfs_immed.c index d0401dc68d41..6f5df1700e95 100644 --- a/fs/freevxfs/vxfs_immed.c +++ b/fs/freevxfs/vxfs_immed.c | |||
@@ -99,8 +99,8 @@ static int | |||
99 | vxfs_immed_readpage(struct file *fp, struct page *pp) | 99 | vxfs_immed_readpage(struct file *fp, struct page *pp) |
100 | { | 100 | { |
101 | struct vxfs_inode_info *vip = VXFS_INO(pp->mapping->host); | 101 | struct vxfs_inode_info *vip = VXFS_INO(pp->mapping->host); |
102 | u_int64_t offset = pp->index << PAGE_CACHE_SHIFT; | 102 | u_int64_t offset = (u_int64_t)pp->index << PAGE_CACHE_SHIFT; |
103 | caddr_t kaddr; | 103 | caddr_t kaddr; |
104 | 104 | ||
105 | kaddr = kmap(pp); | 105 | kaddr = kmap(pp); |
106 | memcpy(kaddr, vip->vii_immed.vi_immed + offset, PAGE_CACHE_SIZE); | 106 | memcpy(kaddr, vip->vii_immed.vi_immed + offset, PAGE_CACHE_SIZE); |