]> 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)
commit06a1551bc28bd024edb8f9801ce95fa5c78d52b5
tree1dd5ecf9deec621a01a125ab0025d327196fdc03
parentbec34d10a398f837b0d4bea38d8c17d31a69547c
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