Josef Bacik ee6adbfd6a btrfs: make BTRFS_RESERVE_FLUSH_EVICT use the global rsv stealing code
I forgot to convert this over when I introduced the global reserve
stealing code to the space flushing code.  Evict was simply trying to
make its reservation and then if it failed it would steal from the
global rsv, which is racey because it's outside of the normal ticketing
code.

Fix this by setting ticket->steal if we are BTRFS_RESERVE_FLUSH_EVICT,
and then make the priority flushing path do the steal for us.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2022-01-03 15:09:45 +01:00
..
2021-09-02 09:21:27 -07:00
2021-11-01 12:48:25 -07:00
2021-06-22 14:11:57 +02:00
2019-11-18 23:43:44 +01:00
2021-06-22 14:11:57 +02:00
2021-11-26 11:24:32 -08:00
2021-08-23 13:19:09 +02:00
2021-10-29 12:38:43 +02:00
2021-10-26 19:08:05 +02:00
2021-11-08 16:55:21 -08:00