[Drbd-dev] [Patch v0 4/8] Use refcount_t 'atomic' type to implement struct kref

Nick Wang nwang at suse.com
Tue Mar 7 04:27:55 CET 2017

In 10383aea, atomic type for refcount is obsoleted, instead 
using refcount_t. Also convert the related call.

This patch is for drbd-kernel-compat

Signed-off-by: Nick Wang <nwang at suse.com>
CC: Philipp Reisner <philipp.reisner at linbit.com>
CC: Lars Ellenberg <lars.ellenberg at linbit.com>
CC: drbd-dev at lists.linbit.com 

 tests/have_refcount_inc.c | 6 ++++++
 1 file changed, 6 insertions(+)
 create mode 100644 tests/have_refcount_inc.c

diff --git a/tests/have_refcount_inc.c b/tests/have_refcount_inc.c
new file mode 100644
index 0000000..38373e7
--- /dev/null
+++ b/tests/have_refcount_inc.c
@@ -0,0 +1,6 @@
+#include <linux/refcount.h>
+void test(refcount_t *r)
+	refcount_inc(r);

More information about the drbd-dev mailing list