percpu-refcount: Add EXPORT_SYMBOL to use percpu_ref from modules

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Fri Nov 22 17:59:08 EST 2013


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=c9e8d128fe316751230ee0c53478740c64f58436
Commit:     c9e8d128fe316751230ee0c53478740c64f58436
Parent:     dbcbc95cd85854588ac80c0a6d98586fa2129418
Author:     Nicholas Bellinger <nab at linux-iscsi.org>
AuthorDate: Thu Nov 7 10:45:35 2013 -0800
Committer:  Nicholas Bellinger <nab at linux-iscsi.org>
CommitDate: Thu Nov 7 12:14:52 2013 -0800

    percpu-refcount: Add EXPORT_SYMBOL to use percpu_ref from modules
    
    This patch adds EXPORT_SYMBOL() for percpu_ref_init(),
    percpu_ref_cancel_init() and percpu_ref_kill_and_confirm() so
    that percpu refcounting can be used by external modules.
    
    Cc: Kent Overstreet <kmo at daterainc.com>
    Signed-off-by: Nicholas Bellinger <nab at linux-iscsi.org>
---
 lib/percpu-refcount.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/percpu-refcount.c b/lib/percpu-refcount.c
index 7deeb62..25b9ac7 100644
--- a/lib/percpu-refcount.c
+++ b/lib/percpu-refcount.c
@@ -53,6 +53,7 @@ int percpu_ref_init(struct percpu_ref *ref, percpu_ref_func_t *release)
 	ref->release = release;
 	return 0;
 }
+EXPORT_SYMBOL(percpu_ref_init);
 
 /**
  * percpu_ref_cancel_init - cancel percpu_ref_init()
@@ -84,6 +85,7 @@ void percpu_ref_cancel_init(struct percpu_ref *ref)
 		free_percpu(ref->pcpu_count);
 	}
 }
+EXPORT_SYMBOL(percpu_ref_cancel_init);
 
 static void percpu_ref_kill_rcu(struct rcu_head *rcu)
 {
@@ -156,3 +158,4 @@ void percpu_ref_kill_and_confirm(struct percpu_ref *ref,
 
 	call_rcu_sched(&ref->rcu, percpu_ref_kill_rcu);
 }
+EXPORT_SYMBOL(percpu_ref_kill_and_confirm);



More information about the linux-mtd-cvs mailing list