Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141297
b: refs/heads/master
c: 3e5510a
h: refs/heads/master
i:
  141295: cfc5b8f
v: v3
  • Loading branch information
Evgeniy Polyakov authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent 8c5bc48 commit 4ddca63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 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: cac22275ac3ee49a69178bd17c62ac30236308ca
refs/heads/master: 3e5510ab0cd73e37b1bf268ec1ec7a071e08a1d5
13 changes: 3 additions & 10 deletions trunk/drivers/staging/dst/export.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ int __init dst_export_init(void)
{
int err = -ENOMEM;

dst_bio_set = bioset_create(32, 32);
dst_bio_set = bioset_create(32, sizeof(struct dst_export_priv));
if (!dst_bio_set)
goto err_out_exit;

Expand Down Expand Up @@ -424,12 +424,8 @@ static void dst_bio_destructor(struct bio *bio)
__free_page(bv->bv_page);
}

if (priv) {
struct dst_node *n = priv->state->node;

if (priv)
dst_state_put(priv->state);
mempool_free(priv, n->trans_pool);
}
bio_free(bio, dst_bio_set);
}

Expand Down Expand Up @@ -555,11 +551,8 @@ int dst_process_io(struct dst_state *st)
dst_bio_set);
if (!bio)
goto err_out_exit;
bio->bi_private = NULL;

priv = mempool_alloc(st->node->trans_pool, GFP_KERNEL);
if (!priv)
goto err_out_free;
priv = (struct dst_export_priv *)(((void *)bio) - sizeof (struct dst_export_priv));

priv->state = dst_state_get(st);
priv->bio = bio;
Expand Down

0 comments on commit 4ddca63

Please sign in to comment.