Skip to contentSkip to conversation

block: fix blk_queue_dma_pad comment

PATCH New FUJITA Tomonori 1 participant 1 message Apr 19, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 block: fix blk_queue_dma_pad comment

This is against Jens' for-2.6.26 branch.

==
From: FUJITA Tomonori <[email protected]>
Subject: [PATCH] block: fix blk_queue_dma_pad comment

rq->data_len is always equal to the true data length.

---
 block/blk-settings.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
block/blk-settings.c +2 -3
index 5713f7e..74f53ed 100644
@@ -299,9 +299,8 @@ EXPORT_SYMBOL(blk_queue_stack_limits);
  *
  * Set pad mask.  Direct IO requests are padded to the mask specified.
  *
- * Appending pad buffer to a request modifies ->data_len such that it
- * includes the pad buffer.  The original requested data length can be
- * obtained using blk_rq_raw_data_len().
+ * Appending pad buffer to a request modifies the last entry of a
+ * scatter list such that it includes the pad buffer.
  **/
 void blk_queue_dma_pad(struct request_queue *q, unsigned int mask)
 {
Signature · 1 line
1.5.4.2