]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: run delayed iputs before committing
authorJosef Bacik <josef@toxicpanda.com>
Fri, 11 Jan 2019 15:21:01 +0000 (10:21 -0500)
committerDavid Sterba <dsterba@suse.com>
Fri, 18 Jan 2019 16:27:21 +0000 (17:27 +0100)
commitc7e680f01c9ad0befb59083f6d4dc4d3067e3fb6
tree7f6c891bbb299017b85fbd3b44a48465baa0d797
parentf0ff9a09539b98957eacc0cd0acb9d1bc89ad838
btrfs: run delayed iputs before committing

Delayed iputs means we can have final iputs of deleted inodes in the
queue, which could potentially generate a lot of pinned space that could
be free'd.  So before we decide to commit the transaction for ENOPSC
reasons, run the delayed iputs so that any potential space is free'd up.
If there is and we freed enough we can then commit the transaction and
potentially be able to make our reservation.

Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c