mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-03-14 06:16:17 +03:00
Linux 6.18: replace nth_page()
Sponsored-by: https://despairlabs.com/sponsor/ Signed-off-by: Rob Norris <robn@despairlabs.com>
This commit is contained in:
parent
adacf020ce
commit
9d50ee59dc
@ -23,6 +23,7 @@
|
|||||||
* Copyright (c) 2014 by Chunwei Chen. All rights reserved.
|
* Copyright (c) 2014 by Chunwei Chen. All rights reserved.
|
||||||
* Copyright (c) 2019 by Delphix. All rights reserved.
|
* Copyright (c) 2019 by Delphix. All rights reserved.
|
||||||
* Copyright (c) 2023, 2024, Klara Inc.
|
* Copyright (c) 2023, 2024, Klara Inc.
|
||||||
|
* Copyright (c) 2025, Rob Norris <robn@despairlabs.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -1109,6 +1110,14 @@ abd_return_buf_copy(abd_t *abd, void *buf, size_t n)
|
|||||||
#define ABD_ITER_PAGE_SIZE(page) (PAGESIZE)
|
#define ABD_ITER_PAGE_SIZE(page) (PAGESIZE)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef nth_page
|
||||||
|
/*
|
||||||
|
* Since 6.18 nth_page() no longer exists, and is no longer required to iterate
|
||||||
|
* within a single SG entry, so we replace it with a simple addition.
|
||||||
|
*/
|
||||||
|
#define nth_page(p, n) ((p)+(n))
|
||||||
|
#endif
|
||||||
|
|
||||||
void
|
void
|
||||||
abd_iter_page(struct abd_iter *aiter)
|
abd_iter_page(struct abd_iter *aiter)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user