diff options
author | Josef Bacik <josef@toxicpanda.com> | 2017-10-19 14:16:02 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-11-01 20:45:35 +0100 |
commit | ddfae63cc8e03ef48622cb780e6c66367b2d4f1a (patch) | |
tree | a9a43579f931d8de9d1023930a6bfd09dba0ca0f /scripts/gcc-plugins/gcc-generate-gimple-pass.h | |
parent | ce8ea7cc6eb3139f4c730d647325e69354159b0f (diff) |
btrfs: move btrfs_truncate_block out of trans handle
Since we do a delalloc reserve in btrfs_truncate_block we can deadlock
with freeze. If somebody else is trying to allocate metadata for this
inode and it gets stuck in start_delalloc_inodes because of freeze we
will deadlock. Be safe and move this outside of a trans handle. This
also has a side-effect of making sure that we're not leaving stale data
behind in the other_encoding or encryption case. Not an issue now since
nobody uses it, but it would be a problem in the future.
Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-gimple-pass.h')
0 files changed, 0 insertions, 0 deletions