btrfs: move the !zoned assert into run_delalloc_cow
authorChristoph Hellwig <hch@lst.de>
Mon, 24 Jul 2023 14:22:41 +0000 (07:22 -0700)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Aug 2023 12:54:47 +0000 (14:54 +0200)
commit76c5126e76696e61ced5d6e34441f857733741bf
tree8629fc72bcb93e9d79278142be8537936b52a677
parent38dc88890de6cae3db5a33ece287e56fc9cc4ce6
btrfs: move the !zoned assert into run_delalloc_cow

Having the assert in the actual helper documents the pre-conditions
much better than having it in the caller, so move it.

Reviewed-by: Boris Burkov <boris@bur.io>
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