Print this page
4047 panic from dbuf_free_range() from dmu_free_object() while doing zfs receive
Reviewed by: Adam Leventhal <ahl@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>

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 ↓ 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  /*
  23   23   * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
  24      - * Copyright (c) 2012 by Delphix. All rights reserved.
       24 + * Copyright (c) 2013 by Delphix. All rights reserved.
  25   25   * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
  26   26   * Copyright (c) 2012, Joyent, Inc. All rights reserved.
  27   27   */
  28   28  
  29   29  /* Portions Copyright 2010 Robert Milkowski */
  30   30  
  31   31  #ifndef _SYS_DMU_H
  32   32  #define _SYS_DMU_H
  33   33  
  34   34  /*
↓ open down ↓ 539 lines elided ↑ open up ↑
 574  574      void *dcb_data);
 575  575  
 576  576  /*
 577  577   * Free up the data blocks for a defined range of a file.  If size is
 578  578   * -1, the range from offset to end-of-file is freed.
 579  579   */
 580  580  int dmu_free_range(objset_t *os, uint64_t object, uint64_t offset,
 581  581          uint64_t size, dmu_tx_t *tx);
 582  582  int dmu_free_long_range(objset_t *os, uint64_t object, uint64_t offset,
 583  583          uint64_t size);
 584      -int dmu_free_object(objset_t *os, uint64_t object);
      584 +int dmu_free_long_object(objset_t *os, uint64_t object);
 585  585  
 586  586  /*
 587  587   * Convenience functions.
 588  588   *
 589  589   * Canfail routines will return 0 on success, or an errno if there is a
 590  590   * nonrecoverable I/O error.
 591  591   */
 592  592  #define DMU_READ_PREFETCH       0 /* prefetch */
 593  593  #define DMU_READ_NO_PREFETCH    1 /* don't prefetch */
 594  594  int dmu_read(objset_t *os, uint64_t object, uint64_t offset, uint64_t size,
↓ open down ↓ 218 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX