metaslab.h (219089) | metaslab.h (224177) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 6 unchanged lines hidden (view full) --- 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21/* 22 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 6 unchanged lines hidden (view full) --- 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21/* 22 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. |
23 * Copyright (c) 2011 by Delphix. All rights reserved. |
|
23 */ 24 25#ifndef _SYS_METASLAB_H 26#define _SYS_METASLAB_H 27 28#include <sys/spa.h> 29#include <sys/space_map.h> 30#include <sys/txg.h> --- 11 unchanged lines hidden (view full) --- 42extern void metaslab_fini(metaslab_t *msp); 43extern void metaslab_sync(metaslab_t *msp, uint64_t txg); 44extern void metaslab_sync_done(metaslab_t *msp, uint64_t txg); 45extern void metaslab_sync_reassess(metaslab_group_t *mg); 46 47#define METASLAB_HINTBP_FAVOR 0x0 48#define METASLAB_HINTBP_AVOID 0x1 49#define METASLAB_GANG_HEADER 0x2 | 24 */ 25 26#ifndef _SYS_METASLAB_H 27#define _SYS_METASLAB_H 28 29#include <sys/spa.h> 30#include <sys/space_map.h> 31#include <sys/txg.h> --- 11 unchanged lines hidden (view full) --- 43extern void metaslab_fini(metaslab_t *msp); 44extern void metaslab_sync(metaslab_t *msp, uint64_t txg); 45extern void metaslab_sync_done(metaslab_t *msp, uint64_t txg); 46extern void metaslab_sync_reassess(metaslab_group_t *mg); 47 48#define METASLAB_HINTBP_FAVOR 0x0 49#define METASLAB_HINTBP_AVOID 0x1 50#define METASLAB_GANG_HEADER 0x2 |
51#define METASLAB_GANG_CHILD 0x4 52#define METASLAB_GANG_AVOID 0x8 |
|
50 51extern int metaslab_alloc(spa_t *spa, metaslab_class_t *mc, uint64_t psize, 52 blkptr_t *bp, int ncopies, uint64_t txg, blkptr_t *hintbp, int flags); 53extern void metaslab_free(spa_t *spa, const blkptr_t *bp, uint64_t txg, 54 boolean_t now); 55extern int metaslab_claim(spa_t *spa, const blkptr_t *bp, uint64_t txg); 56 57extern metaslab_class_t *metaslab_class_create(spa_t *spa, --- 23 unchanged lines hidden --- | 53 54extern int metaslab_alloc(spa_t *spa, metaslab_class_t *mc, uint64_t psize, 55 blkptr_t *bp, int ncopies, uint64_t txg, blkptr_t *hintbp, int flags); 56extern void metaslab_free(spa_t *spa, const blkptr_t *bp, uint64_t txg, 57 boolean_t now); 58extern int metaslab_claim(spa_t *spa, const blkptr_t *bp, uint64_t txg); 59 60extern metaslab_class_t *metaslab_class_create(spa_t *spa, --- 23 unchanged lines hidden --- |