diff options
Diffstat (limited to 'include/linux/lockref.h')
| -rw-r--r-- | include/linux/lockref.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/lockref.h b/include/linux/lockref.h index 4bfde0e99ed5..b10b122dd099 100644 --- a/include/linux/lockref.h +++ b/include/linux/lockref.h | |||
| @@ -28,12 +28,13 @@ struct lockref { | |||
| 28 | #endif | 28 | #endif |
| 29 | struct { | 29 | struct { |
| 30 | spinlock_t lock; | 30 | spinlock_t lock; |
| 31 | unsigned int count; | 31 | int count; |
| 32 | }; | 32 | }; |
| 33 | }; | 33 | }; |
| 34 | }; | 34 | }; |
| 35 | 35 | ||
| 36 | extern void lockref_get(struct lockref *); | 36 | extern void lockref_get(struct lockref *); |
| 37 | extern int lockref_put_return(struct lockref *); | ||
| 37 | extern int lockref_get_not_zero(struct lockref *); | 38 | extern int lockref_get_not_zero(struct lockref *); |
| 38 | extern int lockref_get_or_lock(struct lockref *); | 39 | extern int lockref_get_or_lock(struct lockref *); |
| 39 | extern int lockref_put_or_lock(struct lockref *); | 40 | extern int lockref_put_or_lock(struct lockref *); |
