diff -r 60c4cd9ebaa1 linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c --- a/linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c Wed Aug 3 16:11:32 2005 +++ b/linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c Wed Aug 3 15:16:00 2005 @@ -379,7 +379,7 @@ /* Make sure the buffer is page-sized. */ if ( (blkif_first_sect(req->frame_and_sects[0]) != 0) || - (blkif_last_sect(req->frame_and_sects[0]) != 7) ) + (blkif_last_sect(req->frame_and_sects[0]) != ((PAGE_SIZE/512)-1)) ) goto out; #ifdef CONFIG_XEN_BLKDEV_GRANT diff -r 60c4cd9ebaa1 linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c --- a/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c Wed Aug 3 16:11:32 2005 +++ b/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c Wed Aug 3 15:16:00 2005 @@ -775,7 +775,7 @@ /* Buffer must be sector-aligned. Extent mustn't cross a page boundary. */ if ( unlikely((buffer_ma & ((1<<9)-1)) != 0) ) BUG(); - if ( lsect > 7 ) + if ( lsect > ((PAGE_SIZE/512)-1) ) BUG(); buffer_ma &= PAGE_MASK;