aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorJohannes Thumshirn <[email protected]>2018-12-05 14:23:03 +0000
committerDavid Sterba <[email protected]>2018-12-17 13:51:45 +0000
commit7073017aeb98db311ca407f0f552f2bfc1af3015 (patch)
tree55437b78aa398fc0b50224e6cd5af3e35dce0e5d /fs/btrfs/dev-replace.c
parentbtrfs: dev-replace: open code trivial locking helpers (diff)
downloadkernel-7073017aeb98db311ca407f0f552f2bfc1af3015.tar.gz
kernel-7073017aeb98db311ca407f0f552f2bfc1af3015.zip
btrfs: use offset_in_page instead of open-coding it
Constructs like 'var & (PAGE_SIZE - 1)' or 'var & ~PAGE_MASK' can denote an offset into a page. So replace them by the offset_in_page() macro instead of open-coding it if they're not used as an alignment check. Reviewed-by: Nikolay Borisov <[email protected]> Signed-off-by: Johannes Thumshirn <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions