summaryrefslogtreecommitdiff
path: root/fs/bcachefs/errcode.h
diff options
context:
space:
mode:
authorDaniel Hill <daniel@gluo.nz>2023-01-06 11:11:07 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:09:52 +0300
commit3482dd6a250397fe1dc088a16bc9e50d72f217e6 (patch)
tree8edfedcc8a1ae36e890537e7a41a6918c5fc7d02 /fs/bcachefs/errcode.h
parent0093b9e9704cc932363c66b2b072b762771ffe1f (diff)
downloadlinux-3482dd6a250397fe1dc088a16bc9e50d72f217e6.tar.xz
bcachefs: don't block reads if we're promoting
The promote path calls data_update_init() and now that we take locks here, there's potential for promote to block our read path, just error when we can't take the lock instead of blocking. Signed-off-by: Daniel Hill <daniel@gluo.nz> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/errcode.h')
-rw-r--r--fs/bcachefs/errcode.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/errcode.h b/fs/bcachefs/errcode.h
index 57f1d0a6a490..6129af6129c3 100644
--- a/fs/bcachefs/errcode.h
+++ b/fs/bcachefs/errcode.h
@@ -120,6 +120,7 @@
x(BCH_ERR_invalid_sb, invalid_sb_clean) \
x(BCH_ERR_invalid_sb, invalid_sb_quota) \
x(BCH_ERR_invalid, invalid_bkey) \
+ x(BCH_ERR_operation_blocked, nocow_lock_blocked) \
enum bch_errcode {
BCH_ERR_START = 2048,