X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=fs%2Fdnotify.c;h=daee2edb17cc6483da010172daf5c076f2308b19;hb=9213980e6a70d8473e0ffd4b39ab5b6caaba9ff5;hp=38c62fe577fa2a5c747abd57568bf9e4c5a458ff;hpb=c449269f45c2cdf53af08c8d0af37472f66539d9;p=linux-2.6.git diff --git a/fs/dnotify.c b/fs/dnotify.c index 38c62fe57..daee2edb1 100644 --- a/fs/dnotify.c +++ b/fs/dnotify.c @@ -173,9 +173,7 @@ EXPORT_SYMBOL_GPL(dnotify_parent); static int __init dnotify_init(void) { dn_cache = kmem_cache_create("dnotify_cache", - sizeof(struct dnotify_struct), 0, 0, NULL, NULL); - if (!dn_cache) - panic("cannot create dnotify slab cache"); + sizeof(struct dnotify_struct), 0, SLAB_PANIC, NULL, NULL); return 0; }