]> git.baikalelectronics.ru Git - kernel.git/commit
block: add blk_rq_aligned helper function
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Thu, 28 Aug 2008 06:05:58 +0000 (15:05 +0900)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 9 Oct 2008 06:56:11 +0000 (08:56 +0200)
commitc22757a8349a22f088d09a97d7cb20b750c0f84a
tree7768750efd0d8ef28a183f8cd781b0c878212795
parent9ad1b3b2a75d1c5e7e746ae661f5814497f9db69
block: add blk_rq_aligned helper function

This adds blk_rq_aligned helper function to see if alignment and
padding requirement is satisfied for DMA transfer. This also converts
blk_rq_map_kern and __blk_rq_map_user to use the helper function.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/blk-map.c
include/linux/blkdev.h