FreeBSD ZFS
The Zettabyte File System
|
00001 /* 00002 * CDDL HEADER START 00003 * 00004 * The contents of this file are subject to the terms of the 00005 * Common Development and Distribution License (the "License"). 00006 * You may not use this file except in compliance with the License. 00007 * 00008 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 00009 * or http://www.opensolaris.org/os/licensing. 00010 * See the License for the specific language governing permissions 00011 * and limitations under the License. 00012 * 00013 * When distributing Covered Code, include this CDDL HEADER in each 00014 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 00015 * If applicable, add the following below this CDDL HEADER, with the 00016 * fields enclosed by brackets "[]" replaced with your own identifying 00017 * information: Portions Copyright [yyyy] [name of copyright owner] 00018 * 00019 * CDDL HEADER END 00020 */ 00021 /* 00022 * Copyright (c) 2012 Pawel Jakub Dawidek <pawel@dawidek.net>. 00023 * All rights reserved. 00024 */ 00025 00026 #ifndef _SYS_TRIM_MAP_H 00027 #define _SYS_TRIM_MAP_H 00028 00029 #include <sys/avl.h> 00030 #include <sys/list.h> 00031 #include <sys/spa.h> 00032 00033 #ifdef __cplusplus 00034 extern "C" { 00035 #endif 00036 00037 extern void trim_map_create(vdev_t *vd); 00038 extern void trim_map_destroy(vdev_t *vd); 00039 extern void trim_map_free(zio_t *zio); 00040 extern boolean_t trim_map_write_start(zio_t *zio); 00041 extern void trim_map_write_done(zio_t *zio); 00042 00043 extern void trim_thread_create(spa_t *spa); 00044 extern void trim_thread_destroy(spa_t *spa); 00045 extern void trim_thread_wakeup(spa_t *spa); 00046 00047 #ifdef __cplusplus 00048 } 00049 #endif 00050 00051 #endif /* _SYS_TRIM_MAP_H */