summaryrefslogtreecommitdiff
path: root/linux/bio.c
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 /linux/bio.c
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 'linux/bio.c')
-rw-r--r--linux/bio.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/linux/bio.c b/linux/bio.c
index 08dcd584..eb115a90 100644
--- a/linux/bio.c
+++ b/linux/bio.c
@@ -225,6 +225,11 @@ int bio_add_page(struct bio *bio, struct page *page,
return len;
}
+void bio_add_virt_nofail(struct bio *bio, void *vaddr, unsigned len)
+{
+ bio_add_page(bio, virt_to_page(vaddr), len, offset_in_page(vaddr));
+}
+
static inline bool bio_remaining_done(struct bio *bio)
{
/*