]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: do not check delayed items are empty for single transaction cleanup
authorJosef Bacik <josef@toxicpanda.com>
Thu, 13 Feb 2020 15:47:29 +0000 (10:47 -0500)
committerDavid Sterba <dsterba@suse.com>
Tue, 18 Feb 2020 23:36:41 +0000 (00:36 +0100)
commit61f1b033eabdb5edab7c59938b2d5a7127595ff0
tree6c1b49655312d5e6da2f0d63dbbab5b198a474f6
parent97eb5ef37a740b1ae06c1e0f195bce0f8b4adb15
btrfs: do not check delayed items are empty for single transaction cleanup

btrfs_assert_delayed_root_empty() will check if the delayed root is
completely empty, but this is a filesystem-wide check.  On cleanup we
may have allowed other transactions to begin, for whatever reason, and
thus the delayed root is not empty.

So remove this check from cleanup_one_transation().  This however can
stay in btrfs_cleanup_transaction(), because it checks only after all of
the transactions have been properly cleaned up, and thus is valid.

CC: stable@vger.kernel.org # 4.4+
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
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/disk-io.c