Skip to contentSkip to conversation

slab: remove SLAB_KERNEL

PATCH Dave Jones 2 participants 3 messages Dec 8, 2006 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Dave Jones

author
#1 lore raw
Quoted 8 lines · Linux Kernel
Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=e94b1766097d53e6f3ccfb36c8baa562ffeda3fc
Commit:     e94b1766097d53e6f3ccfb36c8baa562ffeda3fc
Parent:     54e6ecb23951b195d02433a741c7f7cb0b796c78
Author:     Christoph Lameter <[email protected]>
AuthorDate: Wed Dec 6 20:33:17 2006 -0800
Committer:  Linus Torvalds <[email protected]>
CommitDate: Thu Dec 7 08:39:24 2006 -0800
Quoted 7 lines

[PATCH] slab: remove SLAB_KERNEL

SLAB_KERNEL is an alias of GFP_KERNEL.

Missed one.

mm/mmap.c renamed from mm/mmap.c~ +1 -1
@@ -2226,7 +2226,7 @@ int install_special_mapping(struct mm_st
 	struct vm_area_struct *vma;
 	int err;
 
-	vma = kmem_cache_alloc(vm_area_cachep, SLAB_KERNEL);
+	vma = kmem_cache_alloc(vm_area_cachep, GFP_KERNEL);
 	if (unlikely(vma == NULL))
 		return -ENOMEM;
 	memset(vma, 0, sizeof(*vma));
#2 lore raw
Quoted 25 lines · Dave Jones
Quoted 8 lines · Linux Kernel
Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=e94b1766097d53e6f3ccfb36c8baa562ffeda3fc
Commit:     e94b1766097d53e6f3ccfb36c8baa562ffeda3fc
Parent:     54e6ecb23951b195d02433a741c7f7cb0b796c78
Author:     Christoph Lameter <[email protected]>
AuthorDate: Wed Dec 6 20:33:17 2006 -0800
Committer:  Linus Torvalds <[email protected]>
CommitDate: Thu Dec 7 08:39:24 2006 -0800
Quoted 7 lines

[PATCH] slab: remove SLAB_KERNEL

SLAB_KERNEL is an alias of GFP_KERNEL.

Missed one.

mm/mmap.c int install_special_mapping(struct mm_st · line 2232

Quoted 8 lines
mm/mmap.c renamed from mm/mmap.c~ +1 -1
@@ -2226,7 +2226,7 @@ int install_special_mapping(struct mm_st
 	struct vm_area_struct *vma;
 	int err;
 
-	vma = kmem_cache_alloc(vm_area_cachep, SLAB_KERNEL);
+	vma = kmem_cache_alloc(vm_area_cachep, GFP_KERNEL);
 	if (unlikely(vma == NULL))
 		return -ENOMEM;
 	memset(vma, 0, sizeof(*vma));

What kernel is that?

Signature · 1 line
Jens Axboe
author
#3 lore raw
Quoted 6 lines · Jens Axboe
Quoted 6 lines
mm/mmap.c renamed from mm/mmap.c~ +0 -0
@@ -2226,7 +2226,7 @@ int install_special_mapping(struct mm_st
 	struct vm_area_struct *vma;
 	int err;
 
Quoted 7 lines

mm/mmap.c int install_special_mapping(struct mm_st · line 2232

Quoted 5 lines
mm/mmap.c renamed from mm/mmap.c~ +1 -1
-	vma = kmem_cache_alloc(vm_area_cachep, SLAB_KERNEL);
+	vma = kmem_cache_alloc(vm_area_cachep, GFP_KERNEL);
 	if (unlikely(vma == NULL))
 		return -ENOMEM;
 	memset(vma, 0, sizeof(*vma));

What kernel is that?

Oops. My bad. That chunk came from execshield.

Dave