diff options
author | Richard Yao <[email protected]> | 2013-07-07 13:39:59 -0400 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2013-08-01 09:48:07 -0700 |
commit | 3f4058cd15545a83b4e6e50cd7e29af45b54054a (patch) | |
tree | 012ee942fb3e0e225a28d540b3131c9cdf9dd38a | |
parent | 4edbd2f79a95ac608155bf518ea7253c8a0a61fe (diff) |
Remove arc_data_buf_alloc()/arc_data_buf_free()
These functions are used in neither Illumos nor ZFSOnLinux. They appear
to have been replaced by arc_buf_alloc()/arc_buf_free(), so lets remove
them.
Signed-off-by: Richard Yao <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Issue #1614
-rw-r--r-- | include/sys/arc.h | 2 | ||||
-rw-r--r-- | module/zfs/arc.c | 17 |
2 files changed, 0 insertions, 19 deletions
diff --git a/include/sys/arc.h b/include/sys/arc.h index 396144a4b..c88c31148 100644 --- a/include/sys/arc.h +++ b/include/sys/arc.h @@ -92,8 +92,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); diff --git a/module/zfs/arc.c b/module/zfs/arc.c index 97c897d2d..75ce17436 100644 --- a/module/zfs/arc.c +++ b/module/zfs/arc.c @@ -1260,23 +1260,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) { |