summaryrefslogtreecommitdiff
path: root/include/linux/bio.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2025-07-01 13:19:04 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2025-07-02 14:45:52 -0400
commit27e51d62ea4d030a74357ce436886f4187f9380c (patch)
treee22ea35e64961f8888eae8d7a0cfe27fdc966c62 /include/linux/bio.h
parent4145de1746459e118783b51e45f9a1fe9b6d2005 (diff)
Update bcachefs sources to 48d506769bc0 bcachefs: bch2_journal_entry_missing_range()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'include/linux/bio.h')
-rw-r--r--include/linux/bio.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/bio.h b/include/linux/bio.h
index 21825c74..cfd241da 100644
--- a/include/linux/bio.h
+++ b/include/linux/bio.h
@@ -239,6 +239,12 @@ struct bio *bio_alloc_bioset(struct block_device *, unsigned,
extern void bio_put(struct bio *);
int bio_add_page(struct bio *, struct page *, unsigned, unsigned);
+void bio_add_virt_nofail(struct bio *, void *, unsigned);
+
+static inline void bio_add_vmalloc(struct bio *bio, void *vaddr, unsigned len)
+{
+ bio_add_virt_nofail(bio, vaddr, len);
+}
struct bio *bio_alloc_clone(struct block_device *, struct bio *,
gfp_t, struct bio_set *);