File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -344,6 +344,19 @@ void bio_chain(struct bio *bio, struct bio *parent)
344
344
}
345
345
EXPORT_SYMBOL (bio_chain );
346
346
347
+ struct bio * blk_next_bio (struct bio * bio , unsigned int nr_pages , gfp_t gfp )
348
+ {
349
+ struct bio * new = bio_alloc (gfp , nr_pages );
350
+
351
+ if (bio ) {
352
+ bio_chain (bio , new );
353
+ submit_bio (bio );
354
+ }
355
+
356
+ return new ;
357
+ }
358
+ EXPORT_SYMBOL_GPL (blk_next_bio );
359
+
347
360
static void bio_alloc_rescue (struct work_struct * work )
348
361
{
349
362
struct bio_set * bs = container_of (work , struct bio_set , rescue_work );
Original file line number Diff line number Diff line change 10
10
11
11
#include "blk.h"
12
12
13
- struct bio * blk_next_bio (struct bio * bio , unsigned int nr_pages , gfp_t gfp )
14
- {
15
- struct bio * new = bio_alloc (gfp , nr_pages );
16
-
17
- if (bio ) {
18
- bio_chain (bio , new );
19
- submit_bio (bio );
20
- }
21
-
22
- return new ;
23
- }
24
- EXPORT_SYMBOL_GPL (blk_next_bio );
25
-
26
13
int __blkdev_issue_discard (struct block_device * bdev , sector_t sector ,
27
14
sector_t nr_sects , gfp_t gfp_mask , int flags ,
28
15
struct bio * * biop )
You can’t perform that action at this time.
0 commit comments