summaryrefslogtreecommitdiff
path: root/fs/nfs/nfs3_fs.h
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2021-11-09 18:12:04 +0300
committerDavid Sterba <dsterba@suse.com>2022-01-03 17:09:45 +0300
commitee6adbfd6a2c15a71fb26d9321c97bef09ae0534 (patch)
tree600ce87c693b2e6cdcec8c3ec4853a751c4a5e45 /fs/nfs/nfs3_fs.h
parent1b0309eaa426242e168cf6a51dd707962d81578b (diff)
downloadlinux-ee6adbfd6a2c15a71fb26d9321c97bef09ae0534.tar.xz
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>
Diffstat (limited to 'fs/nfs/nfs3_fs.h')
0 files changed, 0 insertions, 0 deletions