Print this page
3748 zfs headers should be C++ compatible
Submitted by:   Justin Gibbs <justing@spectralogic.com>
Submitted by:   Will Andrews <willa@spectralogic.com>
Reviewed by:    Matthew Ahrens <mahrens@delphix.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/zfs/sys/ddt.h
          +++ new/usr/src/uts/common/fs/zfs/sys/ddt.h
↓ open down ↓ 161 lines elided ↑ open up ↑
 162  162          int (*ddt_op_remove)(objset_t *os, uint64_t object, ddt_entry_t *dde,
 163  163              dmu_tx_t *tx);
 164  164          int (*ddt_op_walk)(objset_t *os, uint64_t object, ddt_entry_t *dde,
 165  165              uint64_t *walk);
 166  166          uint64_t (*ddt_op_count)(objset_t *os, uint64_t object);
 167  167  } ddt_ops_t;
 168  168  
 169  169  #define DDT_NAMELEN     80
 170  170  
 171  171  extern void ddt_object_name(ddt_t *ddt, enum ddt_type type,
 172      -    enum ddt_class class, char *name);
      172 +    enum ddt_class ddt_class, char *name);
 173  173  extern int ddt_object_walk(ddt_t *ddt, enum ddt_type type,
 174      -    enum ddt_class class, uint64_t *walk, ddt_entry_t *dde);
      174 +    enum ddt_class ddt_class, uint64_t *walk, ddt_entry_t *dde);
 175  175  extern uint64_t ddt_object_count(ddt_t *ddt, enum ddt_type type,
 176      -    enum ddt_class class);
      176 +    enum ddt_class ddt_class);
 177  177  extern int ddt_object_info(ddt_t *ddt, enum ddt_type type,
 178      -    enum ddt_class class, dmu_object_info_t *);
      178 +    enum ddt_class ddt_class, dmu_object_info_t *);
 179  179  extern boolean_t ddt_object_exists(ddt_t *ddt, enum ddt_type type,
 180      -    enum ddt_class class);
      180 +    enum ddt_class ddt_class);
 181  181  
 182  182  extern void ddt_bp_fill(const ddt_phys_t *ddp, blkptr_t *bp,
 183  183      uint64_t txg);
 184  184  extern void ddt_bp_create(enum zio_checksum checksum, const ddt_key_t *ddk,
 185  185      const ddt_phys_t *ddp, blkptr_t *bp);
 186  186  
 187  187  extern void ddt_key_fill(ddt_key_t *ddk, const blkptr_t *bp);
 188  188  
 189  189  extern void ddt_phys_fill(ddt_phys_t *ddp, const blkptr_t *bp);
 190  190  extern void ddt_phys_clear(ddt_phys_t *ddp);
↓ open down ↓ 37 lines elided ↑ open up ↑
 228  228  extern void ddt_repair_done(ddt_t *ddt, ddt_entry_t *dde);
 229  229  
 230  230  extern int ddt_entry_compare(const void *x1, const void *x2);
 231  231  
 232  232  extern void ddt_create(spa_t *spa);
 233  233  extern int ddt_load(spa_t *spa);
 234  234  extern void ddt_unload(spa_t *spa);
 235  235  extern void ddt_sync(spa_t *spa, uint64_t txg);
 236  236  extern int ddt_walk(spa_t *spa, ddt_bookmark_t *ddb, ddt_entry_t *dde);
 237  237  extern int ddt_object_update(ddt_t *ddt, enum ddt_type type,
 238      -    enum ddt_class class, ddt_entry_t *dde, dmu_tx_t *tx);
      238 +    enum ddt_class ddt_class, ddt_entry_t *dde, dmu_tx_t *tx);
 239  239  
 240  240  extern const ddt_ops_t ddt_zap_ops;
 241  241  
 242  242  #ifdef  __cplusplus
 243  243  }
 244  244  #endif
 245  245  
 246  246  #endif  /* _SYS_DDT_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX