Skip to content

Commit 7ba3792

Browse files
koverstreetaxboe
authored andcommitted
block: Add some exports for bcachefs
- bio_set_pages_dirty(), bio_check_pages_dirty() - dio path - blk_status_to_str() - error messages - bio_add_folio() - this should definitely be exported for everyone, it's the modern version of bio_add_page() Signed-off-by: Kent Overstreet <[email protected]> Cc: [email protected] Cc: Jens Axboe <[email protected]> Signed-off-by: Kent Overstreet <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent e24721e commit 7ba3792

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

block/bio.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1472,6 +1472,7 @@ void bio_set_pages_dirty(struct bio *bio)
14721472
set_page_dirty_lock(bvec->bv_page);
14731473
}
14741474
}
1475+
EXPORT_SYMBOL_GPL(bio_set_pages_dirty);
14751476

14761477
/*
14771478
* bio_check_pages_dirty() will check that all the BIO's pages are still dirty.
@@ -1531,6 +1532,7 @@ void bio_check_pages_dirty(struct bio *bio)
15311532
spin_unlock_irqrestore(&bio_dirty_lock, flags);
15321533
schedule_work(&bio_dirty_work);
15331534
}
1535+
EXPORT_SYMBOL_GPL(bio_check_pages_dirty);
15341536

15351537
static inline bool bio_remaining_done(struct bio *bio)
15361538
{

block/blk-core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ const char *blk_status_to_str(blk_status_t status)
208208
return "<null>";
209209
return blk_errors[idx].name;
210210
}
211+
EXPORT_SYMBOL_GPL(blk_status_to_str);
211212

212213
/**
213214
* blk_sync_queue - cancel any pending callbacks on a queue

block/blk.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,6 @@ static inline void bio_integrity_free(struct bio *bio)
254254

255255
unsigned long blk_rq_timeout(unsigned long timeout);
256256
void blk_add_timer(struct request *req);
257-
const char *blk_status_to_str(blk_status_t status);
258257

259258
bool blk_attempt_plug_merge(struct request_queue *q, struct bio *bio,
260259
unsigned int nr_segs);

include/linux/blkdev.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -847,6 +847,7 @@ extern const char *blk_op_str(enum req_op op);
847847

848848
int blk_status_to_errno(blk_status_t status);
849849
blk_status_t errno_to_blk_status(int errno);
850+
const char *blk_status_to_str(blk_status_t status);
850851

851852
/* only poll the hardware once, don't continue until a completion was found */
852853
#define BLK_POLL_ONESHOT (1 << 0)

0 commit comments

Comments
 (0)