]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: fail if fstrim_range->start == U64_MAX
authorJosef Bacik <josef@toxicpanda.com>
Mon, 22 Nov 2021 22:04:19 +0000 (17:04 -0500)
committerDavid Sterba <dsterba@suse.com>
Wed, 8 Dec 2021 14:42:24 +0000 (15:42 +0100)
commite9501d3ec0dbf1b5cb2092f9fa525d9b7ef3ef71
tree1dd5ecf9deec621a01a125ab0025d327196fdc03
parent50570c163f68a20698422b5fb213ce7dda04e88c
btrfs: fail if fstrim_range->start == U64_MAX

We've always been failing generic/260 because it's testing things we
actually don't care about and thus won't fail for.  However we probably
should fail for fstrim_range->start == U64_MAX since we clearly can't
trim anything past that.  This in combination with an update to
generic/260 will allow us to pass this test properly.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c