summaryrefslogtreecommitdiff
path: root/fs/bcachefs/io.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2020-07-21 13:34:22 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:08:43 -0400
commit63b214e75b1c941d3fc81da5b7fc4aa997e40873 (patch)
treeb3bb966218e4c869747396c674135090473b6ad6 /fs/bcachefs/io.h
parenta2b5313a39dfb0c027ef3f9d79efa531e1c0a736 (diff)
downloadlwn-63b214e75b1c941d3fc81da5b7fc4aa997e40873.tar.gz
lwn-63b214e75b1c941d3fc81da5b7fc4aa997e40873.zip
bcachefs: Add bch2_blk_status_to_str()
We define our own BLK_STS_REMOVED, so we need our own to_str helper too. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/io.h')
-rw-r--r--fs/bcachefs/io.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/bcachefs/io.h b/fs/bcachefs/io.h
index b8fbfef29176..be4aa3875360 100644
--- a/fs/bcachefs/io.h
+++ b/fs/bcachefs/io.h
@@ -26,6 +26,8 @@ void bch2_submit_wbio_replicas(struct bch_write_bio *, struct bch_fs *,
#define BLK_STS_REMOVED ((__force blk_status_t)128)
+const char *bch2_blk_status_to_str(blk_status_t);
+
enum bch_write_flags {
BCH_WRITE_ALLOC_NOWAIT = (1 << 0),
BCH_WRITE_CACHED = (1 << 1),