OSDN Git Service

btrfs: don't clear CTL bits when trying to release extent state
authorJosef Bacik <josef@toxicpanda.com>
Fri, 9 Sep 2022 21:53:46 +0000 (17:53 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Sep 2022 10:28:05 +0000 (12:28 +0200)
commitb71fb16b2f41e7ba59cbee22fdb81665f0af08fc
tree7f63ab1816df561c88ce1fa179405ae822ac287c
parent71528e9e16c7ade3771f5ef9387673580cb2db38
btrfs: don't clear CTL bits when trying to release extent state

When trying to release the extent states due to memory pressure we'll
set all the bits except LOCKED, NODATASUM, and DELALLOC_NEW.  This
includes some of the CTL bits, which isn't really a problem but isn't
correct either.  Exclude the CTL bits from this clearing.

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_io.c