5179 Remove unused ZFS ARC functions
Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com> Reviewed by: Steve Gonczi <gonczi@comcast.net> Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Richard Elling <richard.elling@gmail.com> Reviewed by: George Wilson <george.wilson@delphix.com> Approved by: Richard Lowe <richlowe@richlowe.net> Author: Serapheim Dimitropoulos <serapheimd@gmail.com> illumos/illumos-gate@fbefb14f62
This commit is contained in:
parent
e9b500ac47
commit
4c66489692
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/vendor-sys/illumos/dist/; revision=275538
@ -1310,23 +1310,6 @@ arc_space_return(uint64_t space, arc_space_type_t type)
|
||||
atomic_add_64(&arc_size, -space);
|
||||
}
|
||||
|
||||
void *
|
||||
arc_data_buf_alloc(uint64_t size)
|
||||
{
|
||||
if (arc_evict_needed(ARC_BUFC_DATA))
|
||||
cv_signal(&arc_reclaim_thr_cv);
|
||||
atomic_add_64(&arc_size, size);
|
||||
return (zio_data_buf_alloc(size));
|
||||
}
|
||||
|
||||
void
|
||||
arc_data_buf_free(void *buf, uint64_t size)
|
||||
{
|
||||
zio_data_buf_free(buf, size);
|
||||
ASSERT(arc_size >= size);
|
||||
atomic_add_64(&arc_size, -size);
|
||||
}
|
||||
|
||||
arc_buf_t *
|
||||
arc_buf_alloc(spa_t *spa, int size, void *tag, arc_buf_contents_t type)
|
||||
{
|
||||
|
@ -83,8 +83,6 @@ typedef enum arc_space_type {
|
||||
|
||||
void arc_space_consume(uint64_t space, arc_space_type_t type);
|
||||
void arc_space_return(uint64_t space, arc_space_type_t type);
|
||||
void *arc_data_buf_alloc(uint64_t space);
|
||||
void arc_data_buf_free(void *buf, uint64_t space);
|
||||
arc_buf_t *arc_buf_alloc(spa_t *spa, int size, void *tag,
|
||||
arc_buf_contents_t type);
|
||||
arc_buf_t *arc_loan_buf(spa_t *spa, int size);
|
||||
|
Loading…
Reference in New Issue
Block a user