diff options
author | Boris Burkov <boris@bur.io> | 2023-11-03 11:38:04 -0700 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2023-11-09 14:02:12 +0100 |
commit | d3933152442b7f94419e9ea71835d71b620baf0e (patch) | |
tree | e7964031ba9ebb916691dddef741969ead69f32d /fs/btrfs/inode.c | |
parent | 609d99379736aa6c5b0658654084198aa808035a (diff) | |
download | linux-stable-d3933152442b7f94419e9ea71835d71b620baf0e.tar.gz linux-stable-d3933152442b7f94419e9ea71835d71b620baf0e.tar.bz2 linux-stable-d3933152442b7f94419e9ea71835d71b620baf0e.zip |
btrfs: make OWNER_REF_KEY type value smallest among inline refs
BTRFS_EXTENT_OWNER_REF_KEY is the type of simple quotas extent owner
refs. This special inline ref goes in front of all other inline refs.
In general, inline refs have a required sorted order s.t. type never
decreases (among other requirements). This was recently reified into a
tree-checker and fsck rule, which broke simple quotas. To be fair,
though, in a sense, the new owner ref item had also violated that not
yet fully enforced requirement.
This fix brings the owner ref item into compliance with the requirement
that inline ref type never decrease.
btrfs/301 exercises this behavior and should pass again with this fix.
Fixes: d9a620f77e33 ("btrfs: new inline ref storing owning subvol of data extents")
Signed-off-by: Boris Burkov <boris@bur.io>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/inode.c')
0 files changed, 0 insertions, 0 deletions