btt.c (c6380ecd8e9bee7aba3d9a5a94b58168244c4a61) btt.c (8b904b5b6b58b9a29dcf3f82d936d9e7fd69fda6)
1/*
2 * Block Translation Table
3 * Copyright (c) 2014-2015, Intel Corporation.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU General Public License,
7 * version 2, as published by the Free Software Foundation.
8 *

--- 1528 unchanged lines hidden (view full) ---

1537 btt->btt_disk->queue = btt->btt_queue;
1538 btt->btt_disk->flags = GENHD_FL_EXT_DEVT;
1539 btt->btt_disk->queue->backing_dev_info->capabilities |=
1540 BDI_CAP_SYNCHRONOUS_IO;
1541
1542 blk_queue_make_request(btt->btt_queue, btt_make_request);
1543 blk_queue_logical_block_size(btt->btt_queue, btt->sector_size);
1544 blk_queue_max_hw_sectors(btt->btt_queue, UINT_MAX);
1/*
2 * Block Translation Table
3 * Copyright (c) 2014-2015, Intel Corporation.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU General Public License,
7 * version 2, as published by the Free Software Foundation.
8 *

--- 1528 unchanged lines hidden (view full) ---

1537 btt->btt_disk->queue = btt->btt_queue;
1538 btt->btt_disk->flags = GENHD_FL_EXT_DEVT;
1539 btt->btt_disk->queue->backing_dev_info->capabilities |=
1540 BDI_CAP_SYNCHRONOUS_IO;
1541
1542 blk_queue_make_request(btt->btt_queue, btt_make_request);
1543 blk_queue_logical_block_size(btt->btt_queue, btt->sector_size);
1544 blk_queue_max_hw_sectors(btt->btt_queue, UINT_MAX);
1545 queue_flag_set_unlocked(QUEUE_FLAG_NONROT, btt->btt_queue);
1545 blk_queue_flag_set(QUEUE_FLAG_NONROT, btt->btt_queue);
1546 btt->btt_queue->queuedata = btt;
1547
1548 set_capacity(btt->btt_disk, 0);
1549 device_add_disk(&btt->nd_btt->dev, btt->btt_disk);
1550 if (btt_meta_size(btt)) {
1551 int rc = nd_integrity_init(btt->btt_disk, btt_meta_size(btt));
1552
1553 if (rc) {

--- 192 unchanged lines hidden ---
1546 btt->btt_queue->queuedata = btt;
1547
1548 set_capacity(btt->btt_disk, 0);
1549 device_add_disk(&btt->nd_btt->dev, btt->btt_disk);
1550 if (btt_meta_size(btt)) {
1551 int rc = nd_integrity_init(btt->btt_disk, btt_meta_size(btt));
1552
1553 if (rc) {

--- 192 unchanged lines hidden ---