提交 2004dc8e 编写于 作者: J Jan Kara 提交者: Linus Torvalds

Use pgoff_t instead of unsigned long

Convert variables containing page indexes to pgoff_t.
Signed-off-by: NJan Kara <jack@suse.cz>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 476aed38
...@@ -1332,7 +1332,7 @@ int filemap_fault(struct vm_area_struct *vma, struct vm_fault *vmf) ...@@ -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 file_ra_state *ra = &file->f_ra;
struct inode *inode = mapping->host; struct inode *inode = mapping->host;
struct page *page; struct page *page;
unsigned long size; pgoff_t size;
int did_readaround = 0; int did_readaround = 0;
int ret = 0; int ret = 0;
......
...@@ -56,7 +56,8 @@ do_xip_mapping_read(struct address_space *mapping, ...@@ -56,7 +56,8 @@ do_xip_mapping_read(struct address_space *mapping,
read_actor_t actor) read_actor_t actor)
{ {
struct inode *inode = mapping->host; struct inode *inode = mapping->host;
unsigned long index, end_index, offset; pgoff_t index, end_index;
unsigned long offset;
loff_t isize; loff_t isize;
BUG_ON(!mapping->a_ops->get_xip_page); BUG_ON(!mapping->a_ops->get_xip_page);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册