Print this page
2619 asynchronous destruction of ZFS file systems
2747 SPA versioning with zfs feature flags
Reviewed by: Matt Ahrens <mahrens@delphix.com>
Reviewed by: George Wilson <gwilson@delphix.com>
Reviewed by: Richard Lowe <richlowe@richlowe.net>
Reviewed by: Dan Kruchinin <dan.kruchinin@gmail.com>
Approved by: Dan McDonald <danmcd@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/zfs/dbuf.c
          +++ new/usr/src/uts/common/fs/zfs/dbuf.c
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
  23   23   * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
       24 + * Copyright (c) 2012 by Delphix. All rights reserved.
  24   25   */
  25   26  
  26   27  #include <sys/zfs_context.h>
  27   28  #include <sys/dmu.h>
  28   29  #include <sys/dmu_impl.h>
  29   30  #include <sys/dbuf.h>
  30   31  #include <sys/dmu_objset.h>
  31   32  #include <sys/dsl_dataset.h>
  32   33  #include <sys/dsl_dir.h>
  33   34  #include <sys/dmu_tx.h>
↓ open down ↓ 186 lines elided ↑ open up ↑
 220  221  
 221  222  boolean_t
 222  223  dbuf_is_metadata(dmu_buf_impl_t *db)
 223  224  {
 224  225          if (db->db_level > 0) {
 225  226                  return (B_TRUE);
 226  227          } else {
 227  228                  boolean_t is_metadata;
 228  229  
 229  230                  DB_DNODE_ENTER(db);
 230      -                is_metadata = dmu_ot[DB_DNODE(db)->dn_type].ot_metadata;
      231 +                is_metadata = DMU_OT_IS_METADATA(DB_DNODE(db)->dn_type);
 231  232                  DB_DNODE_EXIT(db);
 232  233  
 233  234                  return (is_metadata);
 234  235          }
 235  236  }
 236  237  
 237  238  void
 238  239  dbuf_evict(dmu_buf_impl_t *db)
 239  240  {
 240  241          ASSERT(MUTEX_HELD(&db->db_mtx));
↓ open down ↓ 2479 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX