Artem Bityutskiy cf610bf419 UBIFS: fix shrinker object count reports
Sometimes VM asks the shrinker to return amount of objects it can shrink,
and we return the ubifs_clean_zn_cnt in that case. However, it is possible
that this counter is negative for a short period of time, due to the way
UBIFS TNC code updates it. And I can observe the following warnings sometimes:

shrink_slab: ubifs_shrinker+0x0/0x2b7 [ubifs] negative objects to delete nr=-8541616642706119788

This patch makes sure UBIFS never returns negative count of objects.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Cc: stable@kernel.org
2011-06-03 18:12:24 +03:00
..
2008-12-31 14:13:24 +02:00
2011-05-23 08:22:20 +03:00
2011-05-23 08:22:20 +03:00
2011-05-13 19:23:55 +03:00
2011-04-05 10:45:45 +03:00
2011-05-16 14:12:12 +03:00
2011-05-13 19:23:54 +03:00
2011-05-16 14:12:12 +03:00
2011-05-16 14:12:15 +03:00
2011-02-06 15:08:02 +02:00
2011-05-13 19:23:53 +03:00