aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColy Li <colyli@suse.de>2018-09-17 01:40:42 +0800
committerColy Li <colyli@suse.de>2018-09-17 01:40:42 +0800
commit7b935e341f2c7f6634ca1e3df630f718d4637d06 (patch)
tree199c1e35b7034d8b3adf8957633eea7c0d7188a9
parentba208c764cdb86d5a4d6e6f61f0d84c4d509f01d (diff)
downloadbcache-patches-7b935e341f2c7f6634ca1e3df630f718d4637d06.tar.gz
for-next: add 0001-bcache-fix-typo-in-code-comments-of-closure_return_w.patch
-rw-r--r--for-next/0001-bcache-fix-typo-in-code-comments-of-closure_return_w.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/for-next/0001-bcache-fix-typo-in-code-comments-of-closure_return_w.patch b/for-next/0001-bcache-fix-typo-in-code-comments-of-closure_return_w.patch
new file mode 100644
index 0000000..4a88d10
--- /dev/null
+++ b/for-next/0001-bcache-fix-typo-in-code-comments-of-closure_return_w.patch
@@ -0,0 +1,32 @@
+From 95d7326fffe90e03ce27c57b6186decc1f07a238 Mon Sep 17 00:00:00 2001
+From: Coly Li <colyli@suse.de>
+Date: Mon, 17 Sep 2018 01:37:53 +0800
+Subject: [PATCH] bcache: fix typo in code comments of
+ closure_return_with_destructor()
+
+The code comments of closure_return_with_destructor() in closure.h makrs
+function name as closure_return(). This patch fixes this type with the
+correct name - closure_return_with_destructor.
+
+Signed-off-by: Coly Li <colyli@suse.de>
+---
+ drivers/md/bcache/closure.h | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/drivers/md/bcache/closure.h b/drivers/md/bcache/closure.h
+index eca0d496b686..c88cdc4ae4ec 100644
+--- a/drivers/md/bcache/closure.h
++++ b/drivers/md/bcache/closure.h
+@@ -345,7 +345,8 @@ do { \
+ } while (0)
+
+ /**
+- * closure_return - finish execution of a closure, with destructor
++ * closure_return_with_destructor - finish execution of a closure,
++ * with destructor
+ *
+ * Works like closure_return(), except @destructor will be called when all
+ * outstanding refs on @cl have been dropped; @destructor may be used to safely
+--
+2.16.4
+