bio: use offset_in_page macro
authorGeliang Tang <geliangtang@163.com>
Sat, 21 Nov 2015 09:27:31 +0000 (17:27 +0800)
committerJens Axboe <axboe@fb.com>
Tue, 24 Nov 2015 22:24:25 +0000 (15:24 -0700)
commitbd5cecea43ef379e82250addd0303e2f9ede6793
tree1a7368f90cea503866269a605c3dbd7be44c37be
parent1fe8f348416b3fb35ea3f24fa92bb1d29ffe7b0b
bio: use offset_in_page macro

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

Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/bio.c