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:
5b1f5bc
)
MD:Update superblock when err == 0 in size_store
author
Xiao Ni
<xni@redhat.com>
Sun, 12 Jun 2016 09:18:00 +0000
(17:18 +0800)
committer
Shaohua Li
<shli@fb.com>
Mon, 13 Jun 2016 18:54:11 +0000
(11:54 -0700)
This is a simple check before updating the superblock. It should update
the superblock when update_size return 0.
Signed-off-by: Xiao Ni <xni@redhat.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/md.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/md.c
b/drivers/md/md.c
index 43728a42fccf388b71fd5c01d2c968df2a021936..d0c1e79da49ec9be864c5319e0dad5781815bd22 100644
(file)
--- a/
drivers/md/md.c
+++ b/
drivers/md/md.c
@@
-4186,7
+4186,8
@@
size_store(struct mddev *mddev, const char *buf, size_t len)
return err;
if (mddev->pers) {
err = update_size(mddev, sectors);
- md_update_sb(mddev, 1);
+ if (err == 0)
+ md_update_sb(mddev, 1);
} else {
if (mddev->dev_sectors == 0 ||
mddev->dev_sectors > sectors)