Print this page
cstyle sort of updates
7127  remove -Wno-missing-braces from Makefile.uts

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/swapfs/swap_vnops.c
          +++ new/usr/src/uts/common/fs/swapfs/swap_vnops.c
↓ open down ↓ 67 lines elided ↑ open up ↑
  68   68  
  69   69  int     swap_getconpage(struct vnode *vp, u_offset_t off, size_t len,
  70   70      uint_t *protp, page_t **plarr, size_t plsz, page_t *conpp,
  71   71      uint_t *pszc, spgcnt_t *nreloc, struct seg *seg, caddr_t addr,
  72   72      enum seg_rw rw, struct cred *cr);
  73   73  
  74   74  static int      swap_putapage(struct vnode *vp, page_t *pp, u_offset_t *off,
  75   75      size_t *lenp, int flags, struct cred *cr);
  76   76  
  77   77  const fs_operation_def_t swap_vnodeops_template[] = {
  78      -        VOPNAME_INACTIVE,       { .vop_inactive = swap_inactive },
  79      -        VOPNAME_GETPAGE,        { .vop_getpage = swap_getpage },
  80      -        VOPNAME_PUTPAGE,        { .vop_putpage = swap_putpage },
  81      -        VOPNAME_DISPOSE,        { .vop_dispose = swap_dispose },
  82      -        VOPNAME_SETFL,          { .error = fs_error },
  83      -        VOPNAME_POLL,           { .error = fs_error },
  84      -        VOPNAME_PATHCONF,       { .error = fs_error },
  85      -        VOPNAME_GETSECATTR,     { .error = fs_error },
  86      -        VOPNAME_SHRLOCK,        { .error = fs_error },
  87      -        NULL,                   NULL
       78 +        {VOPNAME_INACTIVE,      { .vop_inactive = swap_inactive }},
       79 +        {VOPNAME_GETPAGE,       { .vop_getpage = swap_getpage }},
       80 +        {VOPNAME_PUTPAGE,       { .vop_putpage = swap_putpage }},
       81 +        {VOPNAME_DISPOSE,       { .vop_dispose = swap_dispose }},
       82 +        {VOPNAME_SETFL,         { .error = fs_error }},
       83 +        {VOPNAME_POLL,          { .error = fs_error }},
       84 +        {VOPNAME_PATHCONF,      { .error = fs_error }},
       85 +        {VOPNAME_GETSECATTR,    { .error = fs_error }},
       86 +        {VOPNAME_SHRLOCK,       { .error = fs_error }},
       87 +        {NULL,                  {NULL}}
  88   88  };
  89   89  
  90   90  vnodeops_t *swap_vnodeops;
  91   91  
  92   92  /* ARGSUSED */
  93   93  static void
  94   94  swap_inactive(
  95   95          struct vnode *vp,
  96   96          struct cred *cr,
  97   97          caller_context_t *ct)
↓ open down ↓ 685 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX