Lines Matching +full:device +full:- +full:version
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
13 { return (k->field >> offset) & ~(~0ULL << size); } \
17 k->field &= ~(~(~0ULL << size) << offset); \
18 k->field |= (v & ~(~0ULL << size)) << offset; \
21 /* Btree keys - all units are in sectors */
34 { return (k->ptr[i] >> offset) & ~(~0ULL << size); } \
38 k->ptr[i] &= ~(~(~0ULL << size) << offset); \
39 k->ptr[i] |= (v & ~(~0ULL << size)) << offset; \
58 return k->low; in KEY_OFFSET()
63 k->low = v; in SET_KEY_OFFSET()
68 * searches - it told you where a key started. It's not used anymore,
83 #define KEY_START(k) (KEY_OFFSET(k) - KEY_SIZE(k))
92 #define PTR_CHECK_DEV ((1 << PTR_DEV_BITS) - 1)
139 /* Version 0: Cache device
140 * Version 1: Backing device
141 * Version 2: Seed pointer into btree node checksum
142 * Version 3: Cache device with new UUID format
143 * Version 4: Backing device with data offset
166 __le64 version; member
189 __le64 nbuckets; /* device size */
202 * block_size from the cache device section is still used by
221 * This is for in-memory bcache super block.
228 __u64 version; member
249 __u64 nbuckets; /* device size */
261 * block_size from the cache device section is still used by
280 return sb->version == BCACHE_SB_VERSION_BDEV in SB_IS_BDEV()
281 || sb->version == BCACHE_SB_VERSION_BDEV_WITH_OFFSET in SB_IS_BDEV()
282 || sb->version == BCACHE_SB_VERSION_BDEV_WITH_FEATURES; in SB_IS_BDEV()
316 return sb->set_magic ^ JSET_MAGIC; in jset_magic()
321 return sb->set_magic ^ PSET_MAGIC; in pset_magic()
326 return sb->set_magic ^ BSET_MAGIC; in bset_magic()
339 * version is for on disk format changes.
350 __u32 version; member
374 __u32 version; member
385 /* UUIDS - per backing device/flash only volume metadata */
409 /* Version 1: Seed pointer into btree node checksum
424 __u32 version; member
435 /* UUIDS - per backing device/flash only volume metadata */