summaryrefslogtreecommitdiffstats
path: root/kernel/include/linux/blkdev.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include/linux/blkdev.h')
-rw-r--r--kernel/include/linux/blkdev.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/include/linux/blkdev.h b/kernel/include/linux/blkdev.h
index a8f18e02b..a82143ad6 100644
--- a/kernel/include/linux/blkdev.h
+++ b/kernel/include/linux/blkdev.h
@@ -891,7 +891,7 @@ static inline unsigned int blk_rq_get_max_sectors(struct request *rq)
{
struct request_queue *q = rq->q;
- if (unlikely(rq->cmd_type == REQ_TYPE_BLOCK_PC))
+ if (unlikely(rq->cmd_type != REQ_TYPE_FS))
return q->limits.max_hw_sectors;
if (!q->limits.chunk_sectors || (rq->cmd_flags & REQ_DISCARD))