summaryrefslogtreecommitdiffstats
path: root/block/blk-sysfs.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-12-13 16:17:10 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2018-12-18 23:39:26 -0500
commit38417468d4f05cfed62fca8f407d2df0cbe3fcc8 (patch)
tree91fac5bb8a574303159a5803cdf355c0f360fb29 /block/blk-sysfs.c
parentd6a9000b81befd436fe4bcdae76322928bda724c (diff)
downloadlinux-38417468d4f05cfed62fca8f407d2df0cbe3fcc8.tar.gz
linux-38417468d4f05cfed62fca8f407d2df0cbe3fcc8.tar.bz2
linux-38417468d4f05cfed62fca8f407d2df0cbe3fcc8.zip
scsi: block: remove the cluster flag
Now that the the SCSI layer replaced the use of the cluster flag with segment size limits and the DMA boundary we can remove the cluster flag from the block layer. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'block/blk-sysfs.c')
-rw-r--r--block/blk-sysfs.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/block/blk-sysfs.c b/block/blk-sysfs.c
index 844a454a7b3a..5144707f25ea 100644
--- a/block/blk-sysfs.c
+++ b/block/blk-sysfs.c
@@ -136,10 +136,7 @@ static ssize_t queue_max_integrity_segments_show(struct request_queue *q, char *
static ssize_t queue_max_segment_size_show(struct request_queue *q, char *page)
{
- if (blk_queue_cluster(q))
- return queue_var_show(queue_max_segment_size(q), (page));
-
- return queue_var_show(PAGE_SIZE, (page));
+ return queue_var_show(queue_max_segment_size(q), (page));
}
static ssize_t queue_logical_block_size_show(struct request_queue *q, char *page)