projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6c39cb
)
fs/bio.c: remove nr_segs (unused function parameter)
author
Fabian Frederick
<
[email protected]
>
Tue, 22 Apr 2014 21:09:07 +0000
(15:09 -0600)
committer
Jens Axboe
<
[email protected]
>
Tue, 22 Apr 2014 21:09:07 +0000
(15:09 -0600)
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 <
[email protected]
>
Cc: Jens Axboe <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Jens Axboe <
[email protected]
>
fs/bio.c
patch
|
blob
|
history
diff --git
a/fs/bio.c
b/fs/bio.c
index ca55d37436d6ea5a9128a24411a975532d784145..96d28eee8a1eeb425f0025f4c0ccaa61e184f8ab 100644
(file)
--- a/
fs/bio.c
+++ b/
fs/bio.c
@@
-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);