File tree Expand file tree Collapse file tree 2 files changed +0
-29
lines changed Expand file tree Collapse file tree 2 files changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ struct lockref {
37
37
extern void lockref_get (struct lockref * );
38
38
extern int lockref_put_return (struct lockref * );
39
39
extern int lockref_get_not_zero (struct lockref * );
40
- extern int lockref_put_not_zero (struct lockref * );
41
40
extern int lockref_put_or_lock (struct lockref * );
42
41
43
42
extern void lockref_mark_dead (struct lockref * );
Original file line number Diff line number Diff line change @@ -81,34 +81,6 @@ int lockref_get_not_zero(struct lockref *lockref)
81
81
}
82
82
EXPORT_SYMBOL (lockref_get_not_zero );
83
83
84
- /**
85
- * lockref_put_not_zero - Decrements count unless count <= 1 before decrement
86
- * @lockref: pointer to lockref structure
87
- * Return: 1 if count updated successfully or 0 if count would become zero
88
- */
89
- int lockref_put_not_zero (struct lockref * lockref )
90
- {
91
- int retval ;
92
-
93
- CMPXCHG_LOOP (
94
- new .count -- ;
95
- if (old .count <= 1 )
96
- return 0 ;
97
- ,
98
- return 1 ;
99
- );
100
-
101
- spin_lock (& lockref -> lock );
102
- retval = 0 ;
103
- if (lockref -> count > 1 ) {
104
- lockref -> count -- ;
105
- retval = 1 ;
106
- }
107
- spin_unlock (& lockref -> lock );
108
- return retval ;
109
- }
110
- EXPORT_SYMBOL (lockref_put_not_zero );
111
-
112
84
/**
113
85
* lockref_put_return - Decrement reference count if possible
114
86
* @lockref: pointer to lockref structure
You can’t perform that action at this time.
0 commit comments