Print this page
5045 use atomic_{inc,dec}_* instead of atomic_add_*

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/proc/prvnops.c
          +++ new/usr/src/uts/common/fs/proc/prvnops.c
↓ open down ↓ 4421 lines elided ↑ open up ↑
4422 4422          }
4423 4423  
4424 4424          return (vp);
4425 4425  }
4426 4426  
4427 4427  #if defined(DEBUG)
4428 4428  
4429 4429  static  uint32_t nprnode;
4430 4430  static  uint32_t nprcommon;
4431 4431  
4432      -#define INCREMENT(x)    atomic_add_32(&x, 1);
4433      -#define DECREMENT(x)    atomic_add_32(&x, -1);
     4432 +#define INCREMENT(x)    atomic_inc_32(&x);
     4433 +#define DECREMENT(x)    atomic_dec_32(&x);
4434 4434  
4435 4435  #else
4436 4436  
4437 4437  #define INCREMENT(x)
4438 4438  #define DECREMENT(x)
4439 4439  
4440 4440  #endif  /* DEBUG */
4441 4441  
4442 4442  /*
4443 4443   * New /proc vnode required; allocate it and fill in most of the fields.
↓ open down ↓ 1612 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX