Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 334248
b: refs/heads/master
c: 582e2e0
h: refs/heads/master
v: v3
  • Loading branch information
Jianpeng Ma authored and NeilBrown committed Oct 11, 2012
1 parent 117333c commit 993de11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7ad4d4a68a1a19f21c7b39cb3f51bf17fba6e3d0
refs/heads/master: 582e2e056a5c3410174c23f5134e6b00e0db9101
8 changes: 2 additions & 6 deletions trunk/drivers/md/bitmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -470,14 +470,10 @@ static int bitmap_new_disk_sb(struct bitmap *bitmap)
{
bitmap_super_t *sb;
unsigned long chunksize, daemon_sleep, write_behind;
int err = -EINVAL;

bitmap->storage.sb_page = alloc_page(GFP_KERNEL);
if (IS_ERR(bitmap->storage.sb_page)) {
err = PTR_ERR(bitmap->storage.sb_page);
bitmap->storage.sb_page = NULL;
return err;
}
if (bitmap->storage.sb_page == NULL)
return -ENOMEM;
bitmap->storage.sb_page->index = 0;

sb = kmap_atomic(bitmap->storage.sb_page);
Expand Down

0 comments on commit 993de11

Please sign in to comment.