loop.c (43cade803ebeb002403d4b704e041ce800e5b0e1) | loop.c (54bb0ade6627a183c211345761ec46e4bf0048fe) |
---|---|
1/* 2 * linux/drivers/block/loop.c 3 * 4 * Written by Theodore Ts'o, 3/29/93 5 * 6 * Copyright 1993 by Theodore Ts'o. Redistribution of this file is 7 * permitted under the GNU General Public License. 8 * --- 1722 unchanged lines hidden (view full) --- 1731 if (IS_ERR_OR_NULL(lo->lo_queue)) { 1732 err = PTR_ERR(lo->lo_queue); 1733 goto out_cleanup_tags; 1734 } 1735 lo->lo_queue->queuedata = lo; 1736 1737 blk_queue_physical_block_size(lo->lo_queue, PAGE_SIZE); 1738 | 1/* 2 * linux/drivers/block/loop.c 3 * 4 * Written by Theodore Ts'o, 3/29/93 5 * 6 * Copyright 1993 by Theodore Ts'o. Redistribution of this file is 7 * permitted under the GNU General Public License. 8 * --- 1722 unchanged lines hidden (view full) --- 1731 if (IS_ERR_OR_NULL(lo->lo_queue)) { 1732 err = PTR_ERR(lo->lo_queue); 1733 goto out_cleanup_tags; 1734 } 1735 lo->lo_queue->queuedata = lo; 1736 1737 blk_queue_physical_block_size(lo->lo_queue, PAGE_SIZE); 1738 |
1739 blk_queue_max_hw_sectors(lo->lo_queue, BLK_DEF_MAX_SECTORS); |
|
1739 /* 1740 * It doesn't make sense to enable merge because the I/O 1741 * submitted to backing file is handled page by page. 1742 */ 1743 queue_flag_set_unlocked(QUEUE_FLAG_NOMERGES, lo->lo_queue); 1744 1745 err = -ENOMEM; 1746 disk = lo->lo_disk = alloc_disk(1 << part_shift); --- 292 unchanged lines hidden --- | 1740 /* 1741 * It doesn't make sense to enable merge because the I/O 1742 * submitted to backing file is handled page by page. 1743 */ 1744 queue_flag_set_unlocked(QUEUE_FLAG_NOMERGES, lo->lo_queue); 1745 1746 err = -ENOMEM; 1747 disk = lo->lo_disk = alloc_disk(1 << part_shift); --- 292 unchanged lines hidden --- |