btrfs: clean up the check for uncompressed ranges in submit_one_async_extent
authorChristoph Hellwig <hch@lst.de>
Wed, 28 Jun 2023 15:31:32 +0000 (17:31 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Aug 2023 12:52:15 +0000 (14:52 +0200)
commit67583468086c2a12602b915184118c4863402b02
treefc08519680e96eacbf134ec43168986e48304919
parentc56cbe90599338c0aaa84cab0e99a9e8a8501a38
btrfs: clean up the check for uncompressed ranges in submit_one_async_extent

Instead of checking for a NULL !pages and explaining this with a cryptic
comment, just check the compression type for BTRFS_COMPRESS_NONE to make
the check self-explanatory.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c