Print this page
3756 want lz4 support for metadata compression

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/zfs/dmu_objset.c
          +++ new/usr/src/uts/common/fs/zfs/dmu_objset.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 (c) 2013 by Delphix. All rights reserved.
       24 + * Copyright (c) 2013 Martin Matuska. All rights reserved.
  24   25   */
  25   26  
  26   27  /* Portions Copyright 2010 Robert Milkowski */
  27   28  
  28   29  #include <sys/cred.h>
  29   30  #include <sys/zfs_context.h>
  30   31  #include <sys/dmu_objset.h>
  31   32  #include <sys/dsl_dir.h>
  32   33  #include <sys/dsl_dataset.h>
  33   34  #include <sys/dsl_prop.h>
↓ open down ↓ 947 lines elided ↑ open up ↑
 981  982          }
 982  983  
 983  984          /*
 984  985           * Create the root block IO
 985  986           */
 986  987          SET_BOOKMARK(&zb, os->os_dsl_dataset ?
 987  988              os->os_dsl_dataset->ds_object : DMU_META_OBJSET,
 988  989              ZB_ROOT_OBJECT, ZB_ROOT_LEVEL, ZB_ROOT_BLKID);
 989  990          arc_release(os->os_phys_buf, &os->os_phys_buf);
 990  991  
 991      -        dmu_write_policy(os, NULL, 0, 0, &zp);
      992 +        dmu_write_policy(os, NULL, 0, 0, &zp, tx->tx_txg);
 992  993  
 993  994          zio = arc_write(pio, os->os_spa, tx->tx_txg,
 994  995              os->os_rootbp, os->os_phys_buf, DMU_OS_IS_L2CACHEABLE(os), &zp,
 995  996              dmu_objset_write_ready, dmu_objset_write_done, os,
 996  997              ZIO_PRIORITY_ASYNC_WRITE, ZIO_FLAG_MUSTSUCCEED, &zb);
 997  998  
 998  999          /*
 999 1000           * Sync special dnodes - the parent IO for the sync is the root block
1000 1001           */
1001 1002          DMU_META_DNODE(os)->dn_zio = zio;
↓ open down ↓ 740 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX