Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 23091
b: refs/heads/master
c: b0e6e96
h: refs/heads/master
i:
  23089: 0158885
  23087: 6a1aa30
v: v3
  • Loading branch information
Benjamin LaHaise authored and Linus Torvalds committed Mar 23, 2006
1 parent 207405d commit 82e41f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: b73b459f72f746a031d1ef4cc7659b20a1f1acb9
refs/heads/master: b0e6e962992b76580f4900b166a337bad7c1e81b
8 changes: 4 additions & 4 deletions trunk/fs/bio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1243,11 +1243,11 @@ static int __init init_bio(void)
scale = 4;

/*
* scale number of entries
* Limit number of entries reserved -- mempools are only used when
* the system is completely unable to allocate memory, so we only
* need enough to make progress.
*/
bvec_pool_entries = megabytes * 2;
if (bvec_pool_entries > 256)
bvec_pool_entries = 256;
bvec_pool_entries = 1 + scale;

fs_bio_set = bioset_create(BIO_POOL_SIZE, bvec_pool_entries, scale);
if (!fs_bio_set)
Expand Down

0 comments on commit 82e41f6

Please sign in to comment.