summaryrefslogtreecommitdiff
path: root/rust/kernel/gpu/git@git.tavy.me:linux-stable.git
diff options
context:
space:
mode:
authorMark Harmstone <mark@harmstone.com>2026-03-03 15:59:12 +0000
committerDavid Sterba <dsterba@suse.com>2026-04-07 18:56:06 +0200
commitda08c02bc705694f51edb67b094f1e5db629c1e2 (patch)
tree508f93c1c5e04b229ffc025066d92bcb572a6483 /rust/kernel/gpu/git@git.tavy.me:linux-stable.git
parent0e6a169c6487ca3a13d19a9ec6dc9673af5a1cf7 (diff)
btrfs: tree-checker: add checker for items in remap tree
Add write-time checking of items in the remap tree, to catch errors before they are written to disk. We're checking: * That remap items, remap backrefs, and identity remaps aren't written unless the REMAP_TREE incompat flag is set * That identity remaps have a size of 0 * That remap items and remap backrefs have a size of sizeof(struct btrfs_remap_item) * That the objectid for these items is aligned to the sector size * That the offset for these items (i.e. the size of the remapping) isn't 0 and is aligned to the sector size * That objectid + offset doesn't overflow Signed-off-by: Mark Harmstone <mark@harmstone.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'rust/kernel/gpu/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions