OSDN Git Service

btrfs: reserve extra space during evict
authorJosef Bacik <josef@toxicpanda.com>
Wed, 21 Nov 2018 19:03:13 +0000 (14:03 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Feb 2019 13:13:35 +0000 (14:13 +0100)
commit260e77025ffa8779a7dc4bc21f3890273c93f9d4
tree830325be528cb9efbffaa2ad7fb6b5d536c0e15f
parent8a1bbe1d5cba415c771fe5ff68b83b93701c1d7f
btrfs: reserve extra space during evict

We could generate a lot of delayed refs in evict but never have any left
over space from our block rsv to make up for that fact.  So reserve some
extra space and give it to the transaction so it can be used to refill
the delayed refs rsv every loop through the truncate path.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c