Skip to content

Commit 605109f

Browse files
author
Kent Overstreet
committed
bcachefs: KEY_TYPE_error is allowed for reflink
KEY_TYPE_error is left behind when we have to delete all pointers in an extent in fsck; it allows errors to be correctly returned by reads later. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
1 parent fa845c7 commit 605109f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

fs/bcachefs/bcachefs_format.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1504,7 +1504,8 @@ enum btree_id_flags {
15041504
BIT_ULL(KEY_TYPE_stripe)) \
15051505
x(reflink, 7, BTREE_ID_EXTENTS|BTREE_ID_DATA, \
15061506
BIT_ULL(KEY_TYPE_reflink_v)| \
1507-
BIT_ULL(KEY_TYPE_indirect_inline_data)) \
1507+
BIT_ULL(KEY_TYPE_indirect_inline_data)| \
1508+
BIT_ULL(KEY_TYPE_error)) \
15081509
x(subvolumes, 8, 0, \
15091510
BIT_ULL(KEY_TYPE_subvolume)) \
15101511
x(snapshots, 9, 0, \

0 commit comments

Comments
 (0)