target: use offset_in_page macro
authorGeliang Tang <geliangtang@163.com>
Wed, 25 Nov 2015 13:49:27 +0000 (21:49 +0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 6 Jan 2016 21:39:59 +0000 (13:39 -0800)
commitb75d8063c09b5b4dc230dfbb2ddc1a50cf06b897
treee7d1cb5798498c5cc2ecef7d5d83213ed4f02b08
parent234bdbc49d118431b1ebeee228bd1b3105f89e2a
target: use offset_in_page macro

Use offset_in_page macro instead of (addr & ~PAGE_MASK).

Signed-off-by: Geliang Tang <geliangtang@163.com>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_user.c
drivers/target/tcm_fc/tfc_io.c