mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
block: Add gfp_mask parameter to bio_integrity_clone()
Stricter gfp_mask might be required for clone allocation. For example, request-based dm may clone bio in interrupt context so it has to use GFP_ATOMIC. Signed-off-by: Kiyoshi Ueda <[email protected]> Signed-off-by: Jun'ichi Nomura <[email protected]> Acked-by: Martin K. Petersen <[email protected]> Cc: Alasdair G Kergon <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
041b62374c
commit
87092698c6
3 changed files with 6 additions and 5 deletions
2
fs/bio.c
2
fs/bio.c
|
|
@ -463,7 +463,7 @@ struct bio *bio_clone(struct bio *bio, gfp_t gfp_mask)
|
|||
if (bio_integrity(bio)) {
|
||||
int ret;
|
||||
|
||||
ret = bio_integrity_clone(b, bio, fs_bio_set);
|
||||
ret = bio_integrity_clone(b, bio, gfp_mask, fs_bio_set);
|
||||
|
||||
if (ret < 0)
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue