Lines Matching +full:only +full:- +full:1 +full:- +full:8 +full:v

1 /* SPDX-License-Identifier: GPL-2.0 */
15 * merely adjust ptr->offset to point to the start of the data that is currently
20 * Thus an extent that is not checksummed or compressed will consist only of a
24 * When an extent is checksummed or compressed, it's not possible to read only
26 * originally written, and then return only the part of the extent that is
30 * to store the size of the originally allocated space - this is the
33 * pointer, we keep a second smaller offset field - "offset into the original
40 * same checksum type and compression format - however, when copygc runs later (or
42 * going to rewrite all the pointers at once - one of the replicas may be in a
47 * Thus it will only move a subset of the pointers (or in the case of
50 * write only the currently live portion (or copygc would not be able to reduce
51 * fragmentation!) - which necessitates a different bch_extent_crc format for
62 * bch_extent_crc32 - 0b1
63 * bch_extent_ptr - 0b10
64 * bch_extent_crc64 - 0b100
78 x(crc32, 1) \
91 /* Compressed/uncompressed size are stored biased by 1: */
98 _unused:1,
106 _unused:1,
112 } __packed __aligned(8);
114 #define CRC32_SIZE_MAX (1U << 7)
138 } __packed __aligned(8);
140 #define CRC64_SIZE_MAX (1U << 9)
141 #define CRC64_NONCE_MAX ((1U << 10) - 1)
162 } __packed __aligned(8);
164 #define CRC128_SIZE_MAX (1U << 13)
165 #define CRC128_NONCE_MAX ((1U << 13) - 1)
168 * @reservation - pointer hasn't been written to, just reserved
172 __u64 type:1,
173 cached:1,
174 unused:1,
175 unwritten:1,
176 offset:44, /* 8 petabytes */
177 dev:8,
178 gen:8;
180 __u64 gen:8,
181 dev:8,
183 unwritten:1,
184 unused:1,
185 cached:1,
186 type:1;
188 } __packed __aligned(8);
193 block:8,
199 block:8,
225 struct bch_val v; member
229 } __packed __aligned(8);
232 struct bch_val v; member
241 } __packed __aligned(8);
243 LE16_BITMASK(BTREE_PTR_RANGE_UPDATED, struct bch_btree_ptr_v2, flags, 0, 1);
246 struct bch_val v; member
250 } __packed __aligned(8);
259 (1 + BKEY_EXTENT_PTR_U64s_MAX * (BCH_REPLICAS_MAX + 1))
272 struct bch_val v; member
277 } __packed __aligned(8);
280 struct bch_val v; member