summaryrefslogtreecommitdiffstatshomepage
path: root/ipc
diff options
context:
space:
mode:
Diffstat (limited to 'ipc')
-rw-r--r--ipc/util.c2
-rw-r--r--ipc/util.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/ipc/util.c b/ipc/util.c
index 6f30ba80ca15..0af05752969f 100644
--- a/ipc/util.c
+++ b/ipc/util.c
@@ -462,7 +462,7 @@ void ipc_set_key_private(struct ipc_ids *ids, struct kern_ipc_perm *ipcp)
462 ipcp->key = IPC_PRIVATE; 462 ipcp->key = IPC_PRIVATE;
463} 463}
464 464
465int ipc_rcu_getref(struct kern_ipc_perm *ptr) 465bool ipc_rcu_getref(struct kern_ipc_perm *ptr)
466{ 466{
467 return refcount_inc_not_zero(&ptr->refcount); 467 return refcount_inc_not_zero(&ptr->refcount);
468} 468}
diff --git a/ipc/util.h b/ipc/util.h
index e74564fe3375..0a159f69b3bb 100644
--- a/ipc/util.h
+++ b/ipc/util.h
@@ -138,7 +138,7 @@ static inline int ipc_get_maxidx(struct ipc_ids *ids)
138 * refcount is initialized by ipc_addid(), before that point call_rcu() 138 * refcount is initialized by ipc_addid(), before that point call_rcu()
139 * must be used. 139 * must be used.
140 */ 140 */
141int ipc_rcu_getref(struct kern_ipc_perm *ptr); 141bool ipc_rcu_getref(struct kern_ipc_perm *ptr);
142void ipc_rcu_putref(struct kern_ipc_perm *ptr, 142void ipc_rcu_putref(struct kern_ipc_perm *ptr,
143 void (*func)(struct rcu_head *head)); 143 void (*func)(struct rcu_head *head));
144 144