diff -urNp --exclude CVS --exclude BitKeeper x-ref/fs/xfs/linux/xfs_aops.c x/fs/xfs/linux/xfs_aops.c
--- x-ref/fs/xfs/linux/xfs_aops.c	2003-07-17 11:09:02.000000000 +0200
+++ x/fs/xfs/linux/xfs_aops.c	2003-07-17 11:10:28.000000000 +0200
@@ -1097,7 +1097,7 @@ linvfs_direct_IO(
 	int			rw,
 	struct inode		*inode,
 	struct kiobuf		*iobuf,
-	sector_t		blocknr,
+	unsigned long		blocknr,
 	int			blocksize)
 {
 	struct page		**maplist;
@@ -1229,7 +1229,7 @@ struct address_space_operations linvfs_a
 	.commit_write		= generic_commit_write,
 #ifndef HAVE_SECTOR_T
 	.bmap			= (bmap_proc *)linvfs_bmap,
-	.direct_IO		= (direct_IO_proc *)linvfs_direct_IO,
+	.direct_IO		= linvfs_direct_IO,
 #else
 	.bmap			= linvfs_bmap,
 	.direct_IO		= linvfs_direct_IO,
diff -urNp --exclude CVS --exclude BitKeeper x-ref/fs/xfs/linux/xfs_iops.c x/fs/xfs/linux/xfs_iops.c
--- x-ref/fs/xfs/linux/xfs_iops.c	2003-07-17 11:09:02.000000000 +0200
+++ x/fs/xfs/linux/xfs_iops.c	2003-07-17 11:09:07.000000000 +0200
@@ -587,7 +587,7 @@ STATIC int
 linvfs_setxattr(
 	struct dentry	*dentry,
 	const char	*name,
-	void		*data,
+	const void	*data,
 	size_t		size,
 	int		flags)
 {
diff -urNp --exclude CVS --exclude BitKeeper x-ref/fs/xfs/pagebuf/page_buf.c x/fs/xfs/pagebuf/page_buf.c
--- x-ref/fs/xfs/pagebuf/page_buf.c	2003-07-17 11:09:02.000000000 +0200
+++ x/fs/xfs/pagebuf/page_buf.c	2003-07-17 11:09:07.000000000 +0200
@@ -575,8 +575,7 @@ mapit:
 		} else if (flags & PBF_MAPPED) {
 			if (as_list_len > 64)
 				purge_addresses();
-			pb->pb_addr = vmap(pb->pb_pages, page_count,
-					VM_ALLOC, PAGE_KERNEL);
+			pb->pb_addr = vmap(pb->pb_pages, page_count);
 			if (pb->pb_addr == NULL)
 				return -ENOMEM;
 			pb->pb_addr += pb->pb_offset;