diff options
author | NeilBrown <neilb@suse.de> | 2006-02-03 03:03:41 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-02-03 08:32:00 -0800 |
commit | 29fc7e3e70a05e9eea28afb6707a39c1a53e2f66 (patch) | |
tree | 4e8bc28c717116ade3cd723a921f3260656327aa /drivers/md/raid0.c | |
parent | 284ae7cab0f7335c9e0aa8992b28415ef1a54c7c (diff) | |
download | op-kernel-dev-29fc7e3e70a05e9eea28afb6707a39c1a53e2f66.zip op-kernel-dev-29fc7e3e70a05e9eea28afb6707a39c1a53e2f66.tar.gz |
[PATCH] md: Assorted little md fixes
- version-1 superblock
+ The default_bitmap_offset is in sectors, not bytes.
+ the 'size' field in the superblock is in sectors, not KB
- raid0_run should return a negative number on error, not '1'
- raid10_read_balance should not return a valid 'disk' number if
->rdev turned out to be NULL
- kmem_cache_destroy doesn't like being passed a NULL.
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/md/raid0.c')
-rw-r--r-- | drivers/md/raid0.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid0.c b/drivers/md/raid0.c index d03f99c..678f4db 100644 --- a/drivers/md/raid0.c +++ b/drivers/md/raid0.c @@ -372,7 +372,7 @@ out_free_conf: kfree(conf); mddev->private = NULL; out: - return 1; + return -ENOMEM; } static int raid0_stop (mddev_t *mddev) |