]> Git Repo - linux.git/blobdiff - mm/zbud.c
mm/zbud: init user ops only when it is needed
[linux.git] / mm / zbud.c
index ecf1dbef69833f56fbde1c0e2cb167e8e7b1eff7..4e387bea702eca644da2547c3bd8f9537291c189 100644 (file)
--- a/mm/zbud.c
+++ b/mm/zbud.c
@@ -132,7 +132,7 @@ static struct zbud_ops zbud_zpool_ops = {
 
 static void *zbud_zpool_create(gfp_t gfp, struct zpool_ops *zpool_ops)
 {
-       return zbud_create_pool(gfp, &zbud_zpool_ops);
+       return zbud_create_pool(gfp, zpool_ops ? &zbud_zpool_ops : NULL);
 }
 
 static void zbud_zpool_destroy(void *pool)
@@ -619,5 +619,5 @@ module_init(init_zbud);
 module_exit(exit_zbud);
 
 MODULE_LICENSE("GPL");
-MODULE_AUTHOR("Seth Jennings <sjenning@linux.vnet.ibm.com>");
+MODULE_AUTHOR("Seth Jennings <sjenning[email protected]>");
 MODULE_DESCRIPTION("Buddy Allocator for Compressed Pages");
This page took 0.026281 seconds and 4 git commands to generate.