diff options
author | Ryan Libby <[email protected]> | 2021-02-17 21:39:13 -0800 |
---|---|---|
committer | GitHub <[email protected]> | 2021-02-17 21:39:13 -0800 |
commit | bf156c966bd68aef3b08716f9e81238a4571236a (patch) | |
tree | f7033055116bcf6e52f16921d0694535dda2a715 | |
parent | 658fb8020f0501435516baeea7004575d640649b (diff) |
Remove unused abd_alloc_scatter_offset_chunkcnt
Remove function that become unused after refactoring in
e2af2acce3436acdb2b35fdc7c9de1a30ea85514.
Reviewed-by: Ryan Moeller <[email protected]>
Reviewed-by: Matthew Ahrens <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ryan Libby <[email protected]>
Closes #11614
-rw-r--r-- | module/os/freebsd/zfs/abd_os.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/module/os/freebsd/zfs/abd_os.c b/module/os/freebsd/zfs/abd_os.c index ab82b2aae..ff4d80ef1 100644 --- a/module/os/freebsd/zfs/abd_os.c +++ b/module/os/freebsd/zfs/abd_os.c @@ -328,25 +328,6 @@ abd_alloc_for_io(size_t size, boolean_t is_metadata) return (abd_alloc_linear(size, is_metadata)); } -/* - * This is just a helper function to abd_get_offset_scatter() to alloc a - * scatter ABD using the calculated chunkcnt based on the offset within the - * parent ABD. - */ -static abd_t * -abd_alloc_scatter_offset_chunkcnt(size_t chunkcnt) -{ - size_t abd_size = offsetof(abd_t, - abd_u.abd_scatter.abd_chunks[chunkcnt]); - abd_t *abd = kmem_alloc(abd_size, KM_PUSHPAGE); - ASSERT3P(abd, !=, NULL); - list_link_init(&abd->abd_gang_link); - mutex_init(&abd->abd_mtx, NULL, MUTEX_DEFAULT, NULL); - ABDSTAT_INCR(abdstat_struct_size, abd_size); - - return (abd); -} - abd_t * abd_get_offset_scatter(abd_t *abd, abd_t *sabd, size_t off) { |