]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
btrfs: cleanup the COW fallback logic in run_delalloc_nocow
authorChristoph Hellwig <hch@lst.de>
Mon, 24 Jul 2023 14:22:39 +0000 (07:22 -0700)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Aug 2023 12:54:47 +0000 (14:54 +0200)
commit18f62b86c4ea943256f8962ecd0cb013c97b4e0f
tree3dceed925c52163a1877a7c3406cb672ccb7764a
parent953fa5ced510c4937075002bbfc6405cd500efef
btrfs: cleanup the COW fallback logic in run_delalloc_nocow

Use the block group pointer used to track the outstanding NOCOW writes as
a boolean to remove the duplicate nocow variable, and keep it contained
in the main loop to simplify the logic.

Reviewed-by: Boris Burkov <boris@bur.io>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c