]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: fix truncate throttling
authorJosef Bacik <josef@toxicpanda.com>
Mon, 3 Dec 2018 15:20:38 +0000 (10:20 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Dec 2018 13:51:47 +0000 (14:51 +0100)
commite433e9efb7b28c75140f54a21b7bea4e2bbc1479
tree9a4efca6dcae04b146ad53b93edd37e59321ec08
parentd1da3c12e671f28ff08e57826a58cd6e0ddc7f4c
btrfs: fix truncate throttling

We have a bunch of magic to make sure we're throttling delayed refs when
truncating a file.  Now that we have a delayed refs rsv and a mechanism
for refilling that reserve simply use that instead of all of this magic.

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