mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Convert some variables to pgoff_t
@ 2007-12-17 18:13 Jan Kara
  0 siblings, 0 replies; only message in thread
From: Jan Kara @ 2007-12-17 18:13 UTC (permalink / raw)
  To: linux-kernel; +Cc: Andrew Morton

  Hi,

  while doing some other work I spotted that a few variables should be
pgoff_t while they are declared as unsigned long. Attached patch should fix
that.

								Honza
-- 
Jan Kara <jack@suse.cz>
SUSE Labs, CR
---

Convert variables containing page indexes to pgoff_t.

Signed-off-by: Jan Kara <jack@suse.cz>

diff --git a/mm/filemap.c b/mm/filemap.c
index 188cf5f..ae2f868 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -1294,7 +1294,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;
 
diff --git a/mm/filemap_xip.c b/mm/filemap_xip.c
index 32132f3..590a178 100644
--- a/mm/filemap_xip.c
+++ b/mm/filemap_xip.c
@@ -55,7 +55,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);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-12-17 18:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-17 18:13 [PATCH] Convert some variables to pgoff_t Jan Kara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®