super.c (858a0d7eb5300b5f620d98ab3c4b96c9d5f19131) | super.c (dc3b17cc8bf21307c7e076e7c778d5db756f7871) |
---|---|
1/* 2 * bcache setup/teardown code, and some metadata io - read a superblock and 3 * figure out what to do with it. 4 * 5 * Copyright 2010, 2011 Kent Overstreet <kent.overstreet@gmail.com> 6 * Copyright 2012 Google, Inc. 7 */ 8 --- 793 unchanged lines hidden (view full) --- 802 803 q = blk_alloc_queue(GFP_KERNEL); 804 if (!q) 805 return -ENOMEM; 806 807 blk_queue_make_request(q, NULL); 808 d->disk->queue = q; 809 q->queuedata = d; | 1/* 2 * bcache setup/teardown code, and some metadata io - read a superblock and 3 * figure out what to do with it. 4 * 5 * Copyright 2010, 2011 Kent Overstreet <kent.overstreet@gmail.com> 6 * Copyright 2012 Google, Inc. 7 */ 8 --- 793 unchanged lines hidden (view full) --- 802 803 q = blk_alloc_queue(GFP_KERNEL); 804 if (!q) 805 return -ENOMEM; 806 807 blk_queue_make_request(q, NULL); 808 d->disk->queue = q; 809 q->queuedata = d; |
810 q->backing_dev_info.congested_data = d; | 810 q->backing_dev_info->congested_data = d; |
811 q->limits.max_hw_sectors = UINT_MAX; 812 q->limits.max_sectors = UINT_MAX; 813 q->limits.max_segment_size = UINT_MAX; 814 q->limits.max_segments = BIO_MAX_PAGES; 815 blk_queue_max_discard_sectors(q, UINT_MAX); 816 q->limits.discard_granularity = 512; 817 q->limits.io_min = block_size; 818 q->limits.logical_block_size = block_size; --- 308 unchanged lines hidden (view full) --- 1127 ret = bcache_device_init(&dc->disk, block_size, 1128 dc->bdev->bd_part->nr_sects - dc->sb.data_offset); 1129 if (ret) 1130 return ret; 1131 1132 set_capacity(dc->disk.disk, 1133 dc->bdev->bd_part->nr_sects - dc->sb.data_offset); 1134 | 811 q->limits.max_hw_sectors = UINT_MAX; 812 q->limits.max_sectors = UINT_MAX; 813 q->limits.max_segment_size = UINT_MAX; 814 q->limits.max_segments = BIO_MAX_PAGES; 815 blk_queue_max_discard_sectors(q, UINT_MAX); 816 q->limits.discard_granularity = 512; 817 q->limits.io_min = block_size; 818 q->limits.logical_block_size = block_size; --- 308 unchanged lines hidden (view full) --- 1127 ret = bcache_device_init(&dc->disk, block_size, 1128 dc->bdev->bd_part->nr_sects - dc->sb.data_offset); 1129 if (ret) 1130 return ret; 1131 1132 set_capacity(dc->disk.disk, 1133 dc->bdev->bd_part->nr_sects - dc->sb.data_offset); 1134 |
1135 dc->disk.disk->queue->backing_dev_info.ra_pages = 1136 max(dc->disk.disk->queue->backing_dev_info.ra_pages, 1137 q->backing_dev_info.ra_pages); | 1135 dc->disk.disk->queue->backing_dev_info->ra_pages = 1136 max(dc->disk.disk->queue->backing_dev_info->ra_pages, 1137 q->backing_dev_info->ra_pages); |
1138 1139 bch_cached_dev_request_init(dc); 1140 bch_cached_dev_writeback_init(dc); 1141 return 0; 1142} 1143 1144/* Cached device - bcache superblock */ 1145 --- 976 unchanged lines hidden --- | 1138 1139 bch_cached_dev_request_init(dc); 1140 bch_cached_dev_writeback_init(dc); 1141 return 0; 1142} 1143 1144/* Cached device - bcache superblock */ 1145 --- 976 unchanged lines hidden --- |