]> www.infradead.org Git - linux.git/commitdiff
bcachefs: KEY_TYPE_error is allowed for reflink
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 17 Apr 2024 06:04:23 +0000 (02:04 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Wed, 17 Apr 2024 21:29:58 +0000 (17:29 -0400)
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>
fs/bcachefs/bcachefs_format.h

index 085987435a5ea3cfc7354db7ee5392ce62241f05..f7fbfccd2b1e4d7e6bafabd839a6917de906edf9 100644 (file)
@@ -1504,7 +1504,8 @@ enum btree_id_flags {
          BIT_ULL(KEY_TYPE_stripe))                                             \
        x(reflink,              7,      BTREE_ID_EXTENTS|BTREE_ID_DATA,         \
          BIT_ULL(KEY_TYPE_reflink_v)|                                          \
-         BIT_ULL(KEY_TYPE_indirect_inline_data))                               \
+         BIT_ULL(KEY_TYPE_indirect_inline_data)|                               \
+         BIT_ULL(KEY_TYPE_error))                                              \
        x(subvolumes,           8,      0,                                      \
          BIT_ULL(KEY_TYPE_subvolume))                                          \
        x(snapshots,            9,      0,                                      \