Print this page
5179 remove unused ZFS ARC functions

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/zfs/arc.c
          +++ new/usr/src/uts/common/fs/zfs/arc.c
↓ open down ↓ 1302 lines elided ↑ open up ↑
1303 1303          }
1304 1304  
1305 1305          ASSERT(arc_meta_used >= space);
1306 1306          if (arc_meta_max < arc_meta_used)
1307 1307                  arc_meta_max = arc_meta_used;
1308 1308          ARCSTAT_INCR(arcstat_meta_used, -space);
1309 1309          ASSERT(arc_size >= space);
1310 1310          atomic_add_64(&arc_size, -space);
1311 1311  }
1312 1312  
1313      -void *
1314      -arc_data_buf_alloc(uint64_t size)
1315      -{
1316      -        if (arc_evict_needed(ARC_BUFC_DATA))
1317      -                cv_signal(&arc_reclaim_thr_cv);
1318      -        atomic_add_64(&arc_size, size);
1319      -        return (zio_data_buf_alloc(size));
1320      -}
1321      -
1322      -void
1323      -arc_data_buf_free(void *buf, uint64_t size)
1324      -{
1325      -        zio_data_buf_free(buf, size);
1326      -        ASSERT(arc_size >= size);
1327      -        atomic_add_64(&arc_size, -size);
1328      -}
1329      -
1330 1313  arc_buf_t *
1331 1314  arc_buf_alloc(spa_t *spa, int size, void *tag, arc_buf_contents_t type)
1332 1315  {
1333 1316          arc_buf_hdr_t *hdr;
1334 1317          arc_buf_t *buf;
1335 1318  
1336 1319          ASSERT3U(size, >, 0);
1337 1320          hdr = kmem_cache_alloc(hdr_cache, KM_PUSHPAGE);
1338 1321          ASSERT(BUF_EMPTY(hdr));
1339 1322          hdr->b_size = size;
↓ open down ↓ 3884 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX