blk-settings.c (858a0d7eb5300b5f620d98ab3c4b96c9d5f19131) | blk-settings.c (dc3b17cc8bf21307c7e076e7c778d5db756f7871) |
---|---|
1/* 2 * Functions related to setting various queue properties from drivers 3 */ 4#include <linux/kernel.h> 5#include <linux/module.h> 6#include <linux/init.h> 7#include <linux/bio.h> 8#include <linux/blkdev.h> --- 239 unchanged lines hidden (view full) --- 248 printk(KERN_INFO "%s: set to minimum %d\n", 249 __func__, max_hw_sectors); 250 } 251 252 limits->max_hw_sectors = max_hw_sectors; 253 max_sectors = min_not_zero(max_hw_sectors, limits->max_dev_sectors); 254 max_sectors = min_t(unsigned int, max_sectors, BLK_DEF_MAX_SECTORS); 255 limits->max_sectors = max_sectors; | 1/* 2 * Functions related to setting various queue properties from drivers 3 */ 4#include <linux/kernel.h> 5#include <linux/module.h> 6#include <linux/init.h> 7#include <linux/bio.h> 8#include <linux/blkdev.h> --- 239 unchanged lines hidden (view full) --- 248 printk(KERN_INFO "%s: set to minimum %d\n", 249 __func__, max_hw_sectors); 250 } 251 252 limits->max_hw_sectors = max_hw_sectors; 253 max_sectors = min_not_zero(max_hw_sectors, limits->max_dev_sectors); 254 max_sectors = min_t(unsigned int, max_sectors, BLK_DEF_MAX_SECTORS); 255 limits->max_sectors = max_sectors; |
256 q->backing_dev_info.io_pages = max_sectors >> (PAGE_SHIFT - 9); | 256 q->backing_dev_info->io_pages = max_sectors >> (PAGE_SHIFT - 9); |
257} 258EXPORT_SYMBOL(blk_queue_max_hw_sectors); 259 260/** 261 * blk_queue_chunk_sectors - set size of the chunk for this queue 262 * @q: the request queue for the device 263 * @chunk_sectors: chunk sectors in the usual 512b unit 264 * --- 638 unchanged lines hidden --- | 257} 258EXPORT_SYMBOL(blk_queue_max_hw_sectors); 259 260/** 261 * blk_queue_chunk_sectors - set size of the chunk for this queue 262 * @q: the request queue for the device 263 * @chunk_sectors: chunk sectors in the usual 512b unit 264 * --- 638 unchanged lines hidden --- |