mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
btrfs: use correct compare function of dirty_metadata_bytes
commitd814a49198upstream. We use customized, nodesize batch value to update dirty_metadata_bytes. We should also use batch version of compare function or we will easily goto fast path and get false result from percpu_counter_compare(). Fixes:e2d845211e("Btrfs: use percpu counter for dirty metadata count") Signed-off-by: Ethan Lien <ethanlien@synology.com> Reviewed-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: David Sterba <dsterba@suse.com> [bwh: Backported to 3.16: In __btrfs_btree_balance_dirty(), use root->fs_info instead of fs_info] Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
This commit is contained in:
parent
5f2c8b3cee
commit
8c4b98ace6
1 changed files with 6 additions and 4 deletions
Loading…
Add table
Add a link
Reference in a new issue