]> 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)
commitf981fec12cc5d2c07942301744b9ea61228bf246
tree1dd5ecf9deec621a01a125ab0025d327196fdc03
parentd815b3f2f273537cb8afaf5ab11a46851f6c03e5
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