]> git.baikalelectronics.ru Git - kernel.git/commit
iomap: Switch to offset_in_page for clarity
authorAndreas Gruenbacher <agruenba@redhat.com>
Fri, 10 Aug 2018 18:46:14 +0000 (11:46 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Sun, 12 Aug 2018 15:37:31 +0000 (08:37 -0700)
commit8511a8d9d933b974ba1443f5cd8b386f52ee659c
treeffe3923d4d3f2e6711feaa51a6823ed1ff5e3e67
parentaf21e82836aa2e15fa3343c2739b64a2f67d6b95
iomap: Switch to offset_in_page for clarity

Instead of open-coding pos & (PAGE_SIZE - 1) and pos & ~PAGE_MASK, use
the offset_in_page macro.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/iomap.c