summaryrefslogtreecommitdiff
path: root/CREDITS
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2018-12-03 10:20:36 -0500
committerDavid Sterba <dsterba@suse.com>2018-12-17 14:51:47 +0100
commit64403612b73a94bc7b02cf8ca126e3b8ced6e921 (patch)
treed087aac04cf78fa73239a790a211e1419eeba58f /CREDITS
parent413df7252d5256df406a23d7efb679f46d19a23d (diff)
downloadlinux-64403612b73a94bc7b02cf8ca126e3b8ced6e921.tar.gz
linux-64403612b73a94bc7b02cf8ca126e3b8ced6e921.tar.bz2
linux-64403612b73a94bc7b02cf8ca126e3b8ced6e921.zip
btrfs: rework btrfs_check_space_for_delayed_refs
Now with the delayed_refs_rsv we can now know exactly how much pending delayed refs space we need. This means we can drastically simplify btrfs_check_space_for_delayed_refs by simply checking how much space we have reserved for the global rsv (which acts as a spill over buffer) and the delayed refs rsv. If our total size is beyond that amount then we know it's time to commit the transaction and stop any more delayed refs from being generated. With the introduction of dealyed_refs_rsv infrastructure, namely btrfs_update_delayed_refs_rsv we now know exactly how much pending delayed refs space is required. 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 'CREDITS')
0 files changed, 0 insertions, 0 deletions