We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1beabab commit 5476394Copy full SHA for 5476394
include/linux/blkdev.h
@@ -1227,12 +1227,7 @@ static inline unsigned int bdev_max_segments(struct block_device *bdev)
1227
1228
static inline unsigned queue_logical_block_size(const struct request_queue *q)
1229
{
1230
- int retval = 512;
1231
-
1232
- if (q && q->limits.logical_block_size)
1233
- retval = q->limits.logical_block_size;
1234
1235
- return retval;
+ return q->limits.logical_block_size;
1236
}
1237
1238
static inline unsigned int bdev_logical_block_size(struct block_device *bdev)
0 commit comments