Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 37590
b: refs/heads/master
c: 50be345
h: refs/heads/master
v: v3
  • Loading branch information
Milan Broz authored and Jens Axboe committed Sep 30, 2006
1 parent 6ee023d commit a7727e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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: bcfd8d36151e531e1c6c731f1fbf792509a1c494
refs/heads/master: 50be345560f1ffdcb15cc0e146416b80529a2ef2
2 changes: 1 addition & 1 deletion trunk/fs/bio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1142,7 +1142,7 @@ static int biovec_create_pools(struct bio_set *bs, int pool_entries, int scale)
struct biovec_slab *bp = bvec_slabs + i;
mempool_t **bvp = bs->bvec_pools + i;

if (i >= scale)
if (pool_entries > 1 && i >= scale)
pool_entries >>= 1;

*bvp = mempool_create_slab_pool(pool_entries, bp->slab);
Expand Down

0 comments on commit a7727e9

Please sign in to comment.