Get a ref on an fp's fp_setting */
| 300 | |
| 301 | /* Get a ref on an fp's fp_setting */ |
| 302 | static inline struct fail_point_setting * |
| 303 | fail_point_setting_get_ref(struct fail_point *fp) |
| 304 | { |
| 305 | struct fail_point_setting *fp_setting; |
| 306 | |
| 307 | /* Invariant: if we have a ref, our pointer to fp_setting is safe */ |
| 308 | atomic_add_acq_32(&fp->fp_ref_cnt, 1); |
| 309 | fp_setting = fp->fp_setting; |
| 310 | |
| 311 | return (fp_setting); |
| 312 | } |
| 313 | |
| 314 | /* Release a ref on an fp_setting */ |
| 315 | static inline void |
no outgoing calls
no test coverage detected