diff options
| author | Paul E. McKenney <paulmck@linux.ibm.com> | 2018-10-28 13:32:51 -0400 |
|---|---|---|
| committer | Paul E. McKenney <paulmck@linux.ibm.com> | 2018-11-27 12:24:17 -0500 |
| commit | aacb5d91ab1bfbb0e8123da59a2e333d52ba7f60 (patch) | |
| tree | e2bd60b0705ff2e11225cef94daa8fca0211bb09 /include/linux/srcutree.h | |
| parent | eb4c2382272ae7ae5d81fdfa5b7a6c86146eaaa4 (diff) | |
srcu: Use "ssp" instead of "sp" for srcu_struct pointer
In RCU, the distinction between "rsp", "rnp", and "rdp" has served well
for a great many years, but in SRCU, "sp" vs. "sdp" has proven confusing.
This commit therefore renames SRCU's "sp" pointers to "ssp", so that there
is "ssp" for srcu_struct pointer, "snp" for srcu_node pointer, and "sdp"
for srcu_data pointer.
Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
Diffstat (limited to 'include/linux/srcutree.h')
| -rw-r--r-- | include/linux/srcutree.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/srcutree.h b/include/linux/srcutree.h index 0ae91b3a7406..6f292bd3e7db 100644 --- a/include/linux/srcutree.h +++ b/include/linux/srcutree.h | |||
| @@ -51,7 +51,7 @@ struct srcu_data { | |||
| 51 | unsigned long grpmask; /* Mask for leaf srcu_node */ | 51 | unsigned long grpmask; /* Mask for leaf srcu_node */ |
| 52 | /* ->srcu_data_have_cbs[]. */ | 52 | /* ->srcu_data_have_cbs[]. */ |
| 53 | int cpu; | 53 | int cpu; |
| 54 | struct srcu_struct *sp; | 54 | struct srcu_struct *ssp; |
| 55 | }; | 55 | }; |
| 56 | 56 | ||
| 57 | /* | 57 | /* |
| @@ -138,8 +138,8 @@ struct srcu_struct { | |||
| 138 | #define DEFINE_SRCU(name) __DEFINE_SRCU(name, /* not static */) | 138 | #define DEFINE_SRCU(name) __DEFINE_SRCU(name, /* not static */) |
| 139 | #define DEFINE_STATIC_SRCU(name) __DEFINE_SRCU(name, static) | 139 | #define DEFINE_STATIC_SRCU(name) __DEFINE_SRCU(name, static) |
| 140 | 140 | ||
| 141 | void synchronize_srcu_expedited(struct srcu_struct *sp); | 141 | void synchronize_srcu_expedited(struct srcu_struct *ssp); |
| 142 | void srcu_barrier(struct srcu_struct *sp); | 142 | void srcu_barrier(struct srcu_struct *ssp); |
| 143 | void srcu_torture_stats_print(struct srcu_struct *sp, char *tt, char *tf); | 143 | void srcu_torture_stats_print(struct srcu_struct *ssp, char *tt, char *tf); |
| 144 | 144 | ||
| 145 | #endif | 145 | #endif |
