Skip to contentSkip to conversation

ipc-shm-drop-shm_lock_check.patch removed from -mm tree

merged [email protected] 1 participant 1 message Sep 12, 2013

lore
Share & tools
lore
#0 lore raw

Subject: [merged] ipc-shm-drop-shm_lock_check.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Thu, 12 Sep 2013 12:51:05 -0700

The patch titled
Subject: ipc, shm: drop shm_lock_check
has been removed from the -mm tree. Its filename was
ipc-shm-drop-shm_lock_check.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Davidlohr Bueso <[email protected]>
Subject: ipc, shm: drop shm_lock_check

This function was replaced by a the lockless shm_obtain_object_check(), and no longer has any users.

Cc Sedat Dilek <[email protected]>
Cc Rik van Riel <[email protected]>
Cc Manfred Spraul <[email protected]>

---

 ipc/shm.c |   11 -----------
 1 file changed, 11 deletions(-)
ipc/shm.c renamed from ipc/shm.c~ipc-shm-drop-shm_lock_check +0 -10
diff -puN ipc/shm.c~ipc-shm-drop-shm_lock_check ipc/shm.c
@@ -167,17 +167,6 @@ static inline void shm_lock_by_ptr(struc
 	ipc_lock_object(&ipcp->shm_perm);
 }
 
-static inline struct shmid_kernel *shm_lock_check(struct ipc_namespace *ns,
-						int id)
-{
-	struct kern_ipc_perm *ipcp = ipc_lock_check(&shm_ids(ns), id);
-
-	if (IS_ERR(ipcp))
-		return (struct shmid_kernel *)ipcp;
-
-	return container_of(ipcp, struct shmid_kernel, shm_perm);
-}