diff options
author | Davidlohr Bueso <davidlohr.bueso@hp.com> | 2013-09-11 23:26:29 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-12 00:59:44 +0200 |
commit | 32a2750010981216fb788c5190fb0e646abfab30 (patch) | |
tree | 8a3d02037101eabc254f2e63836323e4373e18a2 /ipc/util.h | |
parent | ipc, shm: guard against non-existant vma in shmdt(2) (diff) | |
download | linux-32a2750010981216fb788c5190fb0e646abfab30.tar.xz linux-32a2750010981216fb788c5190fb0e646abfab30.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | ipc/util.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/ipc/util.h b/ipc/util.h index 0a362ffca972..14b0a2adba08 100644 --- a/ipc/util.h +++ b/ipc/util.h @@ -171,12 +171,6 @@ static inline void ipc_assert_locked_object(struct kern_ipc_perm *perm) assert_spin_locked(&perm->lock); } -static inline void ipc_lock_by_ptr(struct kern_ipc_perm *perm) -{ - rcu_read_lock(); - ipc_lock_object(perm); -} - static inline void ipc_unlock(struct kern_ipc_perm *perm) { ipc_unlock_object(perm); |