summaryrefslogtreecommitdiff
path: root/fs/btrfs/struct-funcs.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2020-04-29 23:41:20 +0200
committerDavid Sterba <dsterba@suse.com>2020-05-25 11:25:34 +0200
commitc60ac0ffd682fc04f564dd6f4cc1a77c0f94608b (patch)
tree44994c92b04864076da2a01decf618c1bcb7a809 /fs/btrfs/struct-funcs.c
parent2b48966a4da4bcb35f0883bc23dcaf63fcb8557f (diff)
btrfs: drop unnecessary offset_in_page in extent buffer helpers
Helpers that iterate over extent buffer pages set up several variables, one of them is finding out offset of the extent buffer start within a page. Right now we have extent buffers aligned to page sizes so this is effectively storing zero. This makes the code harder the follow and can be simplified. The same change is done in all the helpers: * remove: size_t start_offset = offset_in_page(eb->start); * simplify code using start_offset Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/struct-funcs.c')
0 files changed, 0 insertions, 0 deletions