diff options
Diffstat (limited to 'fs/bio.c')
-rw-r--r-- | fs/bio.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -255,7 +255,6 @@ void bio_init(struct bio *bio) | |||
255 | { | 255 | { |
256 | memset(bio, 0, sizeof(*bio)); | 256 | memset(bio, 0, sizeof(*bio)); |
257 | bio->bi_flags = 1 << BIO_UPTODATE; | 257 | bio->bi_flags = 1 << BIO_UPTODATE; |
258 | bio->bi_comp_cpu = -1; | ||
259 | atomic_set(&bio->bi_cnt, 1); | 258 | atomic_set(&bio->bi_cnt, 1); |
260 | } | 259 | } |
261 | EXPORT_SYMBOL(bio_init); | 260 | EXPORT_SYMBOL(bio_init); |
@@ -338,7 +337,7 @@ static void bio_fs_destructor(struct bio *bio) | |||
338 | * RETURNS: | 337 | * RETURNS: |
339 | * Pointer to new bio on success, NULL on failure. | 338 | * Pointer to new bio on success, NULL on failure. |
340 | */ | 339 | */ |
341 | struct bio *bio_alloc(gfp_t gfp_mask, int nr_iovecs) | 340 | struct bio *bio_alloc(gfp_t gfp_mask, unsigned int nr_iovecs) |
342 | { | 341 | { |
343 | struct bio *bio = bio_alloc_bioset(gfp_mask, nr_iovecs, fs_bio_set); | 342 | struct bio *bio = bio_alloc_bioset(gfp_mask, nr_iovecs, fs_bio_set); |
344 | 343 | ||
@@ -366,7 +365,7 @@ static void bio_kmalloc_destructor(struct bio *bio) | |||
366 | * %__GFP_WAIT, the allocation is guaranteed to succeed. | 365 | * %__GFP_WAIT, the allocation is guaranteed to succeed. |
367 | * | 366 | * |
368 | **/ | 367 | **/ |
369 | struct bio *bio_kmalloc(gfp_t gfp_mask, int nr_iovecs) | 368 | struct bio *bio_kmalloc(gfp_t gfp_mask, unsigned int nr_iovecs) |
370 | { | 369 | { |
371 | struct bio *bio; | 370 | struct bio *bio; |
372 | 371 | ||
@@ -697,7 +696,8 @@ static void bio_free_map_data(struct bio_map_data *bmd) | |||
697 | kfree(bmd); | 696 | kfree(bmd); |
698 | } | 697 | } |
699 | 698 | ||
700 | static struct bio_map_data *bio_alloc_map_data(int nr_segs, int iov_count, | 699 | static struct bio_map_data *bio_alloc_map_data(int nr_segs, |
700 | unsigned int iov_count, | ||
701 | gfp_t gfp_mask) | 701 | gfp_t gfp_mask) |
702 | { | 702 | { |
703 | struct bio_map_data *bmd; | 703 | struct bio_map_data *bmd; |