diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-04-23 01:09:07 +0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-04-23 01:09:07 +0400 |
commit | 7410b3c6c5c919d1ca432fb47ce75a8092729eae (patch) | |
tree | 2e39b2c445b33af65469fadde993cb6a0140fe51 /fs | |
parent | a6c39cb4f71e61aff19d07e2d0b26bb6e3548fae (diff) | |
download | linux-7410b3c6c5c919d1ca432fb47ce75a8092729eae.tar.xz |
fs/bio.c: remove nr_segs (unused function parameter)
nr_segs is no longer used in bio_alloc_map_data since c8db444820a1e3
("block: Don't save/copy bvec array anymore")
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/bio.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1013,8 +1013,7 @@ static void bio_set_map_data(struct bio_map_data *bmd, struct bio *bio, bio->bi_private = bmd; } -static struct bio_map_data *bio_alloc_map_data(int nr_segs, - unsigned int iov_count, +static struct bio_map_data *bio_alloc_map_data(unsigned int iov_count, gfp_t gfp_mask) { if (iov_count > UIO_MAXIOV) @@ -1156,7 +1155,7 @@ struct bio *bio_copy_user_iov(struct request_queue *q, if (offset) nr_pages++; - bmd = bio_alloc_map_data(nr_pages, iov_count, gfp_mask); + bmd = bio_alloc_map_data(iov_count, gfp_mask); if (!bmd) return ERR_PTR(-ENOMEM); |