summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/move.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2022-12-11 20:37:11 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:09:49 -0400
commit858536c7cea8bb86511501768ef797d103642498 (patch)
treeb19f4933c893bb2208478f55b7c169d2cb6c8ff8 /fs/bcachefs/move.c
parente9a1da97377f89f09e6b0b484554fe7a0e2dbe3e (diff)
downloadlinux-stable-858536c7cea8bb86511501768ef797d103642498.tar.gz
linux-stable-858536c7cea8bb86511501768ef797d103642498.tar.bz2
linux-stable-858536c7cea8bb86511501768ef797d103642498.zip
bcachefs: Convert EROFS errors to private error codes
More error code improvements - this gets us more useful error messages. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/move.c')
-rw-r--r--fs/bcachefs/move.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/move.c b/fs/bcachefs/move.c
index 4d6fd3025e40..848a415b6797 100644
--- a/fs/bcachefs/move.c
+++ b/fs/bcachefs/move.c
@@ -251,7 +251,7 @@ static int bch2_move_extent(struct btree_trans *trans,
}
if (!percpu_ref_tryget_live(&c->writes))
- return -EROFS;
+ return -BCH_ERR_erofs_no_writes;
/* write path might have to decompress data: */
bkey_for_each_ptr_decode(k.k, ptrs, p, entry)