Print this page
3742 zfs comments need cleaner, more consistent style
Submitted by:   Will Andrews <willa@spectralogic.com>
Submitted by:   Alan Somers <alans@spectralogic.com>
Reviewed by:    Matthew Ahrens <mahrens@delphix.com>
Reviewed by:    George Wilson <george.wilson@delphix.com>
Reviewed by:    Eric Schrock <eric.schrock@delphix.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/zfs/sys/zio_compress.h
          +++ new/usr/src/uts/common/fs/zfs/sys/zio_compress.h
↓ open down ↓ 28 lines elided ↑ open up ↑
  29   29  
  30   30  #ifndef _SYS_ZIO_COMPRESS_H
  31   31  #define _SYS_ZIO_COMPRESS_H
  32   32  
  33   33  #include <sys/zio.h>
  34   34  
  35   35  #ifdef  __cplusplus
  36   36  extern "C" {
  37   37  #endif
  38   38  
  39      -/*
  40      - * Common signature for all zio compress/decompress functions.
  41      - */
       39 +/* Common signature for all zio compress functions. */
  42   40  typedef size_t zio_compress_func_t(void *src, void *dst,
  43   41      size_t s_len, size_t d_len, int);
       42 +/* Common signature for all zio decompress functions. */
  44   43  typedef int zio_decompress_func_t(void *src, void *dst,
  45   44      size_t s_len, size_t d_len, int);
  46   45  
  47   46  /*
  48   47   * Information about each compression function.
  49   48   */
  50   49  typedef struct zio_compress_info {
  51   50          zio_compress_func_t     *ci_compress;   /* compression function */
  52   51          zio_decompress_func_t   *ci_decompress; /* decompression function */
  53   52          int                     ci_level;       /* level parameter */
↓ open down ↓ 38 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX