]> git.ipfire.org Git - thirdparty/linux.git/commit
btrfs: return ENODATA in case RST lookup fails
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>
Mon, 7 Oct 2024 11:52:47 +0000 (13:52 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 11 Nov 2024 13:34:14 +0000 (14:34 +0100)
commit5e72aabc1fffe9d713276974b0533d10354d0a13
tree58931a53bc863067da4e7aaf3a7835f229086f77
parent61b4d75e3c5c10d523d95e19728dd5a6e2fd58f9
btrfs: return ENODATA in case RST lookup fails

In case a lookup in the RAID stripe-tree fails, return ENODATA instead of
ENOENT to better distinguish stripe-tree lookups from other code paths
where we return ENOENT.

Suggested-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/raid-stripe-tree.c