]> git.hungrycats.org Git - linux/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)
committerZygo Blaxell <zblaxell@thirteen.furryterror.org>
Thu, 28 Jul 2016 02:21:56 +0000 (22:21 -0400)
commitcea82eb0f690c9a64021f56625b040bd703bf9a0
treeb06b08ebcf148b8b8ae987ec9891b0a4b8f9b0ee
parentdc1d837be7158ddc3c3c42b2011ad286680bc743
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>
(cherry picked from commit bac357dcec2956f01df9da5365be257741b534dc)
fs/btrfs/extent-tree.c