projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b020e8
)
md: show journal for journal disk in disk state sysfs
author
Shaohua Li
<shli@fb.com>
Sun, 4 Oct 2015 16:20:11 +0000
(09:20 -0700)
committer
NeilBrown
<neilb@suse.com>
Sun, 1 Nov 2015 02:48:27 +0000
(13:48 +1100)
Journal disk state sysfs entry should indicate it's journal
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: NeilBrown <neilb@suse.com>
drivers/md/md.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/md.c
b/drivers/md/md.c
index fe67272d0b1b0feb0e320ffd324ace153e43d036..5744829b7d052971668de85425172e4414dcf07f 100644
(file)
--- a/
drivers/md/md.c
+++ b/
drivers/md/md.c
@@
-2520,6
+2520,10
@@
state_show(struct md_rdev *rdev, char *page)
len += sprintf(page+len, "%sin_sync",sep);
sep = ",";
}
+ if (test_bit(Journal, &flags)) {
+ len += sprintf(page+len, "%sjournal",sep);
+ sep = ",";
+ }
if (test_bit(WriteMostly, &flags)) {
len += sprintf(page+len, "%swrite_mostly",sep);
sep = ",";