summaryrefslogtreecommitdiffstats
path: root/mm/shmem.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@sw.ru>2007-10-17 08:26:10 +0200
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-17 17:42:47 +0200
commit040b5c6f9503f2d6b35c335f8537bb3035d35547 (patch)
tree71f1693fbcaf9e2a953e66fdf13bbbc20510b60e /mm/shmem.c
parentsoftlockup: add a /proc tuning parameter (diff)
downloadlinux-040b5c6f9503f2d6b35c335f8537bb3035d35547.tar.xz
linux-040b5c6f9503f2d6b35c335f8537bb3035d35547.zip
SLAB_PANIC more (proc, posix-timers, shmem)
These aren't modular, so SLAB_PANIC is OK. Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/shmem.c')
-rw-r--r--mm/shmem.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/mm/shmem.c b/mm/shmem.c
index 204865750fe4..6fa20a84daa0 100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -2343,9 +2343,7 @@ static int init_inodecache(void)
{
shmem_inode_cachep = kmem_cache_create("shmem_inode_cache",
sizeof(struct shmem_inode_info),
- 0, 0, init_once);
- if (shmem_inode_cachep == NULL)
- return -ENOMEM;
+ 0, SLAB_PANIC, init_once);
return 0;
}