summaryrefslogtreecommitdiff
path: root/fs/btrfs/file.c
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2025-04-02 14:10:53 +0100
committerDavid Sterba <dsterba@suse.com>2025-05-15 14:30:41 +0200
commitc6a43322a3ab01da6c7588c29a0a918b9d797c11 (patch)
tree77f670797c71fc9c631ac9ce0f720aa3fb33bf42 /fs/btrfs/file.c
parent53828c759ad7d281a8e7f26b7c1102db9ec678f2 (diff)
btrfs: remove redundant record start offset check at test_range_bit()
It's pointless to check if the current record's start offset is greater than the end offset, as before we just tested if it was greater than the start offset - and if it's not it means it's less than or equal to the start offset, so it can not be greater than the end offset, as our start offset is always smaller than the end offset. So remove that check and also add an assertion to verify the start offset is smaller then the end offset. Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/file.c')
0 files changed, 0 insertions, 0 deletions