From: Shaohua Li Date: Sun, 4 Oct 2015 16:20:11 +0000 (-0700) Subject: md: show journal for journal disk in disk state sysfs X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ac6096e9d5cb88a31f3af2d140df7d680b42745e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git md: show journal for journal disk in disk state sysfs Journal disk state sysfs entry should indicate it's journal Signed-off-by: Shaohua Li Signed-off-by: NeilBrown --- diff --git a/drivers/md/md.c b/drivers/md/md.c index fe67272d0b1b..5744829b7d05 100644 --- 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 = ",";