summaryrefslogtreecommitdiff
path: root/fs/btrfs/extent_io.c
diff options
context:
space:
mode:
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>2023-11-23 07:47:18 -0800
committerDavid Sterba <dsterba@suse.com>2023-12-15 20:27:03 +0100
commitb0d823840936dd63ae41d93b690288de767849d6 (patch)
treeb1cddfc95c85718c6f14c51c99a0fbd388666d55 /fs/btrfs/extent_io.c
parent2aae747a4938c2c3c398ff55aa2ddaf51b135899 (diff)
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: Christoph Hellwig <hch@lst.de> Reviewed-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r--fs/btrfs/extent_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index 671010de7964..cc9a454810d0 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -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;
}