summaryrefslogtreecommitdiff
path: root/fs/squashfs
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fb.com>2018-12-03 10:20:32 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-12-05 15:37:25 +0100
commitfe6f3973ff0ac8a6bd72b944acac90a95fe1b4a4 (patch)
tree0bdf3bf39a09508bef6a586bcf3d6e25270950d2 /fs/squashfs
parent2faad660e05fc979be6d385b92f9e9e159d304d1 (diff)
btrfs: only track ref_heads in delayed_ref_updates
[ Upstream commit 158ffa364bf723fa1ef128060646d23dc3942994 ] We use this number to figure out how many delayed refs to run, but __btrfs_run_delayed_refs really only checks every time we need a new delayed ref head, so we always run at least one ref head completely no matter what the number of items on it. Fix the accounting to only be adjusted when we add/remove a ref head. In addition to using this number to limit the number of delayed refs run, a future patch is also going to use it to calculate the amount of space required for delayed refs space reservation. Reviewed-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: Josef Bacik <jbacik@fb.com> Signed-off-by: David Sterba <dsterba@suse.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/squashfs')
0 files changed, 0 insertions, 0 deletions