You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
ipc: drop ipc_lock_by_ptr
After previous cleanups and optimizations, this function is no longer heavily used and we don't have a good reason to keep it. Update the few remaining callers and get rid of it. Signed-off-by: Davidlohr Bueso <davidlohr.bueso@hp.com> Cc: Sedat Dilek <sedat.dilek@gmail.com> Cc: Rik van Riel <riel@redhat.com> Cc: Manfred Spraul <manfred@colorfullife.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
530fcd16d8
commit
32a2750010
+2
-1
@@ -89,7 +89,8 @@ void free_ipcs(struct ipc_namespace *ns, struct ipc_ids *ids,
|
||||
perm = idr_find(&ids->ipcs_idr, next_id);
|
||||
if (perm == NULL)
|
||||
continue;
|
||||
ipc_lock_by_ptr(perm);
|
||||
rcu_read_lock();
|
||||
ipc_lock_object(perm);
|
||||
free(ns, perm);
|
||||
total++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user