aboutsummaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorMartin K. Petersen <martin.petersen@oracle.com>2009-06-18 03:56:03 -0400
committerJens Axboe <jens.axboe@oracle.com>2009-06-18 03:56:20 -0400
commit3a02c8e8142f7f133d4c6e72bc3e1d830e6b8b9e (patch)
tree7485ad50ba3b773d186119d48cba2a124e667125 /block
parentddeb9c3e949751992628628d000915a317df52c4 (diff)
block: Fix bounce_pfn setting
Correct stacking bounce_pfn limit setting and prevent warnings on 32-bit. Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'block')
-rw-r--r--block/blk-settings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-settings.c b/block/blk-settings.c
index 7541ea4bf9fe..81bc0d1fdb53 100644
--- a/block/blk-settings.c
+++ b/block/blk-settings.c
@@ -112,7 +112,7 @@ void blk_set_default_limits(struct queue_limits *lim)
112 lim->max_segment_size = MAX_SEGMENT_SIZE; 112 lim->max_segment_size = MAX_SEGMENT_SIZE;
113 lim->max_sectors = lim->max_hw_sectors = SAFE_MAX_SECTORS; 113 lim->max_sectors = lim->max_hw_sectors = SAFE_MAX_SECTORS;
114 lim->logical_block_size = lim->physical_block_size = lim->io_min = 512; 114 lim->logical_block_size = lim->physical_block_size = lim->io_min = 512;
115 lim->bounce_pfn = BLK_BOUNCE_ANY; 115 lim->bounce_pfn = (unsigned long)(BLK_BOUNCE_ANY >> PAGE_SHIFT);
116 lim->alignment_offset = 0; 116 lim->alignment_offset = 0;
117 lim->io_opt = 0; 117 lim->io_opt = 0;
118 lim->misaligned = 0; 118 lim->misaligned = 0;