All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] block: fix blk_queue_dma_pad comment
@ 2008-04-19 12:12 FUJITA Tomonori
  0 siblings, 0 replies; only message in thread
From: FUJITA Tomonori @ 2008-04-19 12:12 UTC (permalink / raw)
  To: linux-scsi; +Cc: jens.axboe, htejun

This is against Jens' for-2.6.26 branch.

==
From: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Subject: [PATCH] block: fix blk_queue_dma_pad comment

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

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: Tejun Heo <htejun@gmail.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
---
 block/blk-settings.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/block/blk-settings.c b/block/blk-settings.c
index 5713f7e..74f53ed 100644
--- a/block/blk-settings.c
+++ b/block/blk-settings.c
@@ -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)
 {
-- 
1.5.4.2


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-04-19 12:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-19 12:12 [PATCH] block: fix blk_queue_dma_pad comment FUJITA Tomonori

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.