]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit120725059e1948bd504e446f2e1ed5a650081c0f
tree7f63ab1816df561c88ce1fa179405ae822ac287c
parent5418c7bdf679801cfe6bb5a23429d95b4a6b32d6
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