Skip to content

Commit

Permalink
Use pgoff_t instead of unsigned long
Browse files Browse the repository at this point in the history
Convert variables containing page indexes to pgoff_t.

Signed-off-by: Jan Kara <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
jankara authored and Linus Torvalds committed Feb 8, 2008
1 parent 476aed3 commit 2004dc8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mm/filemap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1332,7 +1332,7 @@ int filemap_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
struct file_ra_state *ra = &file->f_ra;
struct inode *inode = mapping->host;
struct page *page;
unsigned long size;
pgoff_t size;
int did_readaround = 0;
int ret = 0;

Expand Down
3 changes: 2 additions & 1 deletion mm/filemap_xip.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ do_xip_mapping_read(struct address_space *mapping,
read_actor_t actor)
{
struct inode *inode = mapping->host;
unsigned long index, end_index, offset;
pgoff_t index, end_index;
unsigned long offset;
loff_t isize;

BUG_ON(!mapping->a_ops->get_xip_page);
Expand Down

0 comments on commit 2004dc8

Please sign in to comment.