diff mbox series

[04/12] bcache: update comment in sysfs.c

Message ID 20181213145357.38528-5-colyli@suse.de (mailing list archive)
State New, archived
Headers show
Series bcache patches for Linux v4.21 | expand

Commit Message

Coly Li Dec. 13, 2018, 2:53 p.m. UTC
From: Shenghui Wang <shhuiw@foxmail.com>

We have struct cached_dev allocated by kzalloc in register_bcache(), which
initializes all the fields of cached_dev with 0s. And commit ce4c3e19e520
("bcache: Replace bch_read_string_list() by __sysfs_match_string()") has
remove the string "default".

Update the comment.

Signed-off-by: Shenghui Wang <shhuiw@foxmail.com>
Signed-off-by: Coly Li <colyli@suse.de>
---
 drivers/md/bcache/sysfs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/drivers/md/bcache/sysfs.c b/drivers/md/bcache/sysfs.c
index 26f035a0c5b9..d2e5c9892d4d 100644
--- a/drivers/md/bcache/sysfs.c
+++ b/drivers/md/bcache/sysfs.c
@@ -16,7 +16,7 @@ 
 #include <linux/sort.h>
 #include <linux/sched/clock.h>
 
-/* Default is -1; we skip past it for struct cached_dev's cache mode */
+/* Default is 0 ("writethrough") */
 static const char * const bch_cache_modes[] = {
 	"writethrough",
 	"writeback",
@@ -25,7 +25,7 @@  static const char * const bch_cache_modes[] = {
 	NULL
 };
 
-/* Default is -1; we skip past it for stop_when_cache_set_failed */
+/* Default is 0 ("auto") */
 static const char * const bch_stop_on_failure_modes[] = {
 	"auto",
 	"always",