diff options
Diffstat (limited to 'mm/slab.c')
-rw-r--r-- | mm/slab.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -901,7 +901,7 @@ static int transfer_objects(struct array_cache *to, | |||
901 | struct array_cache *from, unsigned int max) | 901 | struct array_cache *from, unsigned int max) |
902 | { | 902 | { |
903 | /* Figure out how many entries to transfer */ | 903 | /* Figure out how many entries to transfer */ |
904 | int nr = min(min(from->avail, max), to->limit - to->avail); | 904 | int nr = min3(from->avail, max, to->limit - to->avail); |
905 | 905 | ||
906 | if (!nr) | 906 | if (!nr) |
907 | return 0; | 907 | return 0; |