Message ID | 20231121-josef-generic-163-v1-4-049e37185841@wdc.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | btrfs: zoned: remove extent_buffer redirtying | expand |
Looks good:
Reviewed-by: Christoph Hellwig <hch@lst.de>
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 8bc5025ce278..b8a73ebe3485 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -4186,7 +4186,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; }
Use memset_page() in memset_extent_buffer() instead of opencoding it. This does not not change any functionality. Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> --- fs/btrfs/extent_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)