Commit b0d82384 authored by Johannes Thumshirn's avatar Johannes Thumshirn Committed by David Sterba

btrfs: use memset_page instead of opencoding it

Use memset_page() in memset_extent_buffer() instead of opencoding it.

This does not not change any functionality.
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarJosef Bacik <josef@toxicpanda.com>
Signed-off-by: default avatarJohannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 2aae747a
......@@ -4208,7 +4208,7 @@ static void memset_extent_buffer(const struct extent_buffer *eb, int c,
struct page *page = eb->pages[index];
assert_eb_page_uptodate(eb, page);
memset(page_address(page) + offset, c, cur_len);
memset_page(page, offset, c, cur_len);
cur += cur_len;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment