提交 7410b3c6 编写于 作者: F Fabian Frederick 提交者: Jens Axboe

fs/bio.c: remove nr_segs (unused function parameter)

nr_segs is no longer used in bio_alloc_map_data since c8db4448
("block: Don't save/copy bvec array anymore")
Signed-off-by: NFabian Frederick <fabf@skynet.be>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NJens Axboe <axboe@fb.com>
上级 a6c39cb4
...@@ -1013,8 +1013,7 @@ static void bio_set_map_data(struct bio_map_data *bmd, struct bio *bio, ...@@ -1013,8 +1013,7 @@ static void bio_set_map_data(struct bio_map_data *bmd, struct bio *bio,
bio->bi_private = bmd; bio->bi_private = bmd;
} }
static struct bio_map_data *bio_alloc_map_data(int nr_segs, static struct bio_map_data *bio_alloc_map_data(unsigned int iov_count,
unsigned int iov_count,
gfp_t gfp_mask) gfp_t gfp_mask)
{ {
if (iov_count > UIO_MAXIOV) if (iov_count > UIO_MAXIOV)
...@@ -1156,7 +1155,7 @@ struct bio *bio_copy_user_iov(struct request_queue *q, ...@@ -1156,7 +1155,7 @@ struct bio *bio_copy_user_iov(struct request_queue *q,
if (offset) if (offset)
nr_pages++; nr_pages++;
bmd = bio_alloc_map_data(nr_pages, iov_count, gfp_mask); bmd = bio_alloc_map_data(iov_count, gfp_mask);
if (!bmd) if (!bmd)
return ERR_PTR(-ENOMEM); return ERR_PTR(-ENOMEM);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册