]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: avoid deadlocks during reservations in btrfs_truncate_block
authorJosef Bacik <jbacik@fb.com>
Wed, 20 Jul 2016 23:48:45 +0000 (16:48 -0700)
committerChris Mason <clm@fb.com>
Wed, 20 Jul 2016 23:58:04 +0000 (16:58 -0700)
commitaf2109d98fb69d1e713a9d5055343c9fa024331e
treef696c4ea2ce8b51c9fe58f9bd5c6411693f7fc2d
parentb1afe9e8d5ce76f867127b0f2b6e205647580c11
Btrfs: avoid deadlocks during reservations in btrfs_truncate_block

The new enospc code makes it possible to deadlock if we don't use
FLUSH_LIMIT during reservations inside a transaction.  This enforces
the correct flush type to avoid both deadlocks and assertions

Signed-off-by: Chris Mason <clm@fb.com>
Signed-off-by: Josef Bacik <jbacik@fb.com>
fs/btrfs/extent-tree.c