]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - include/linux/percpu-refcount.h
percpu-refcount: add @gfp to percpu_ref_init()
[mirror_ubuntu-artful-kernel.git] / include / linux / percpu-refcount.h
index 3dfbf237cd8f32fc684e2934e7a8ace0da043b14..ee8325122dbdec9b4f43c5b164658801ce7f1ade 100644 (file)
@@ -49,6 +49,7 @@
 #include <linux/kernel.h>
 #include <linux/percpu.h>
 #include <linux/rcupdate.h>
+#include <linux/gfp.h>
 
 struct percpu_ref;
 typedef void (percpu_ref_func_t)(struct percpu_ref *);
@@ -66,7 +67,7 @@ struct percpu_ref {
 };
 
 int __must_check percpu_ref_init(struct percpu_ref *ref,
-                                percpu_ref_func_t *release);
+                                percpu_ref_func_t *release, gfp_t gfp);
 void percpu_ref_reinit(struct percpu_ref *ref);
 void percpu_ref_exit(struct percpu_ref *ref);
 void percpu_ref_kill_and_confirm(struct percpu_ref *ref,