Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 180165
b: refs/heads/master
c: 9e9432c
h: refs/heads/master
i:
  180163: a3a9a92
v: v3
  • Loading branch information
Chuck Ebbert authored and Jens Axboe committed Jan 30, 2010
1 parent 1f31a51 commit cca0b44
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 1d6165851cd8e3f919d446cd6da35dee44e8837e
refs/heads/master: 9e9432c267e4047db98b9d4fba95099c6effcef9
3 changes: 2 additions & 1 deletion trunk/fs/bio-integrity.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static inline unsigned int vecs_to_idx(unsigned int nr)

static inline int use_bip_pool(unsigned int idx)
{
if (idx == BIOVEC_NR_POOLS)
if (idx == BIOVEC_MAX_IDX)
return 1;

return 0;
Expand Down Expand Up @@ -95,6 +95,7 @@ struct bio_integrity_payload *bio_integrity_alloc_bioset(struct bio *bio,

/* Use mempool if lower order alloc failed or max vecs were requested */
if (bip == NULL) {
idx = BIOVEC_MAX_IDX; /* so we free the payload properly later */
bip = mempool_alloc(bs->bio_integrity_pool, gfp_mask);

if (unlikely(bip == NULL)) {
Expand Down

0 comments on commit cca0b44

Please sign in to comment.