projects
/
unionfs-2.6.39.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2906f03
)
md: fix bitmap-on-external-file bug.
author
NeilBrown
<neilb@suse.de>
Thu, 8 Jan 2009 21:31:05 +0000
(08:31 +1100)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Sun, 18 Jan 2009 18:43:47 +0000
(10:43 -0800)
commit
538452700d95480c16e7aa6b10ff77cd937d33f4
upstream.
commit
a2ed9615e3222645007fc19991aedf30eed3ecfd
fixed a bug with 'internal' bitmaps, but in the process broke
'in a file' bitmaps. So they are broken in 2.6.28
This fixes it, and needs to go in 2.6.28-stable.
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/md/bitmap.c
patch
|
blob
|
history
diff --git
a/drivers/md/bitmap.c
b/drivers/md/bitmap.c
index ab7c8e4a61f943c516ae5a3534e8775c33180f6b..666b7ba47ec533badd6c2f2b1e7627f6b5eb24fe 100644
(file)
--- a/
drivers/md/bitmap.c
+++ b/
drivers/md/bitmap.c
@@
-964,9
+964,11
@@
static int bitmap_init_from_disk(struct bitmap *bitmap, sector_t start)
*/
page = bitmap->sb_page;
offset = sizeof(bitmap_super_t);
- read_sb_page(bitmap->mddev, bitmap->offset,
- page,
- index, count);
+ if (!file)
+ read_sb_page(bitmap->mddev,
+ bitmap->offset,
+ page,
+ index, count);
} else if (file) {
page = read_page(file, index, bitmap, count);
offset = 0;