Files
linux/fs
Ethan Lien 5ad9b8ae0d btrfs: use correct compare function of dirty_metadata_bytes
commit d814a49198 upstream.

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")
CC: stable@vger.kernel.org # 4.4+
Signed-off-by: Ethan Lien <ethanlien@synology.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
nb: Rebased on 4.4.y ]
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-12 17:27:28 +09:00
..
2017-08-06 18:59:43 -07:00
2018-05-30 13:19:56 +02:00
2016-05-20 17:58:30 -07:00
2023-05-12 17:25:50 +09:00
2018-05-30 13:19:56 +02:00
2017-11-30 08:39:04 +00:00
2018-05-19 14:06:17 +02:00
2018-04-24 11:26:46 +02:00
2018-07-03 11:23:17 +02:00
2018-06-06 16:44:38 +02:00
2018-03-05 15:34:36 +08:00
2017-06-14 15:06:00 +02:00
2016-09-27 21:20:53 -04:00
2017-07-05 16:18:14 +02:00
2017-09-07 10:32:23 +02:00
2016-09-27 18:47:38 -04:00
2018-05-16 11:39:34 +02:00
2017-09-20 09:59:51 +02:00
2017-09-26 00:32:37 -07:00
2017-09-26 00:32:37 -07:00
2018-02-17 13:21:15 +01:00
2017-07-12 17:07:29 +02:00
2017-07-21 08:55:50 +02:00
2017-06-14 15:06:01 +02:00
2018-03-05 07:38:41 +01:00
2017-12-20 10:51:15 +01:00
2023-05-12 17:24:42 +09:00