projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
844e8d9
)
[PATCH] md: don't allow new md/bitmap file to be set if one already exists
author
NeilBrown
<neilb@cse.unsw.edu.au>
Fri, 9 Sep 2005 23:23:43 +0000
(16:23 -0700)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Fri, 9 Sep 2005 23:39:09 +0000
(16:39 -0700)
... otherwise we loose a reference and can never free the file.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/md.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/md.c
b/drivers/md/md.c
index 373ab92e367b853066f15fc8f50b757b8184b9dc..63c566165189acc3458fabc07f61e8d657ee3ca9 100644
(file)
--- a/
drivers/md/md.c
+++ b/
drivers/md/md.c
@@
-2430,7
+2430,7
@@
static int set_bitmap_file(mddev_t *mddev, int fd)
{
int err;
- if (mddev->pers)
+ if (mddev->pers
|| mddev->bitmap_file
)
return -EBUSY;
mddev->bitmap_file = fget(fd);