diff options
Diffstat (limited to 'block/blk-sysfs.c')
-rw-r--r-- | block/blk-sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-sysfs.c b/block/blk-sysfs.c index 0749b89c6885..a26c930db346 100644 --- a/block/blk-sysfs.c +++ b/block/blk-sysfs.c | |||
@@ -114,7 +114,7 @@ static ssize_t queue_max_segments_show(struct request_queue *q, char *page) | |||
114 | 114 | ||
115 | static ssize_t queue_max_segment_size_show(struct request_queue *q, char *page) | 115 | static ssize_t queue_max_segment_size_show(struct request_queue *q, char *page) |
116 | { | 116 | { |
117 | if (test_bit(QUEUE_FLAG_CLUSTER, &q->queue_flags)) | 117 | if (blk_queue_cluster(q)) |
118 | return queue_var_show(queue_max_segment_size(q), (page)); | 118 | return queue_var_show(queue_max_segment_size(q), (page)); |
119 | 119 | ||
120 | return queue_var_show(PAGE_CACHE_SIZE, (page)); | 120 | return queue_var_show(PAGE_CACHE_SIZE, (page)); |