]> git.baikalelectronics.ru Git - kernel.git/commit
target: Convert to DIV_ROUND_UP_SECTOR_T usage for sectors / dev_max_sectors
authorNicholas Bellinger <nab@linux-iscsi.org>
Tue, 26 Jul 2011 07:38:40 +0000 (00:38 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 26 Jul 2011 09:40:34 +0000 (09:40 +0000)
commit41a4e01a151d028a7c5ffe7d412699f9d83d3cd0
treee2b09b9c0ffa657590981bc4d2af8908efa2f11d
parentf29c51a6d42ccce9cfb2f3ebadf2b06f67bbfbcb
target: Convert to DIV_ROUND_UP_SECTOR_T usage for sectors / dev_max_sectors

This patch adds the new macro usage of include/linux/kernel.h:DIV_ROUND_UP_SECTOR_T
for the new DIV_ROUND_UP_ULL() usage for 32-bit architectures with unsigned long long
sector_t division in transport_allocate_data_tasks() usage for target_core_mod v4.1

Reported-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_transport.c