Print this page
zpool import speedup

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/zfs/sys/dmu.h
          +++ new/usr/src/uts/common/fs/zfs/sys/dmu.h
↓ open down ↓ 255 lines elided ↑ open up ↑
 256  256  
 257  257  /*
 258  258   * artificial blkids for bonus buffer and spill blocks
 259  259   */
 260  260  #define DMU_BONUS_BLKID         (-1ULL)
 261  261  #define DMU_SPILL_BLKID         (-2ULL)
 262  262  /*
 263  263   * Public routines to create, destroy, open, and close objsets.
 264  264   */
 265  265  int dmu_objset_hold(const char *name, void *tag, objset_t **osp);
      266 +int dmu_objset_hold_nolock(const char *name, void *tag, objset_t **osp);
 266  267  int dmu_objset_own(const char *name, dmu_objset_type_t type,
 267  268      boolean_t readonly, void *tag, objset_t **osp);
 268  269  void dmu_objset_rele(objset_t *os, void *tag);
 269  270  void dmu_objset_disown(objset_t *os, void *tag);
 270  271  int dmu_objset_open_ds(struct dsl_dataset *ds, objset_t **osp);
 271  272  
 272  273  void dmu_objset_evict_dbufs(objset_t *os);
 273  274  int dmu_objset_create(const char *name, dmu_objset_type_t type, uint64_t flags,
 274  275      void (*func)(objset_t *os, void *arg, cred_t *cr, dmu_tx_t *tx), void *arg);
 275  276  int dmu_objset_clone(const char *name, const char *origin);
 276  277  int dsl_destroy_snapshots_nvl(struct nvlist *snaps, boolean_t defer,
 277  278      struct nvlist *errlist);
 278  279  int dmu_objset_snapshot_one(const char *fsname, const char *snapname);
 279  280  int dmu_objset_snapshot_tmp(const char *, const char *, int);
 280  281  int dmu_objset_find(char *name, int func(const char *, void *), void *arg,
 281  282      int flags);
      283 +int dmu_objset_find_parallel(char *name, int func(const char *, void *),
      284 +    void *arg, int flags);
 282  285  void dmu_objset_byteswap(void *buf, size_t size);
 283  286  int dsl_dataset_rename_snapshot(const char *fsname,
 284  287      const char *oldsnapname, const char *newsnapname, boolean_t recursive);
 285  288  
 286  289  typedef struct dmu_buf {
 287  290          uint64_t db_object;             /* object that this buffer is part of */
 288  291          uint64_t db_offset;             /* byte offset in this object */
 289  292          uint64_t db_size;               /* size of buffer in bytes */
 290  293          void *db_data;                  /* data in buffer */
 291  294  } dmu_buf_t;
↓ open down ↓ 538 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX