block: Add bio_alloc_pages()
More utility code to replace stuff that's getting open coded. Signed-off-by: Kent Overstreet <koverstreet@google.com> CC: Jens Axboe <axboe@kernel.dk> CC: NeilBrown <neilb@suse.de>
This commit is contained in:
parent
cb34e057ad
commit
a07876064a
3 changed files with 32 additions and 13 deletions
|
@ -298,6 +298,7 @@ static inline void bio_flush_dcache_pages(struct bio *bi)
|
|||
#endif
|
||||
|
||||
extern void bio_copy_data(struct bio *dst, struct bio *src);
|
||||
extern int bio_alloc_pages(struct bio *bio, gfp_t gfp);
|
||||
|
||||
extern struct bio *bio_copy_user(struct request_queue *, struct rq_map_data *,
|
||||
unsigned long, unsigned int, int, gfp_t);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue