X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Flinux%2Fshrinker.h;h=a83833a1f7a26f589a7584252ff413333286f5ea;hb=5f779bbd472cdb2046ff8b672ad8c5b62b61cd19;hp=790651b4e5baf6ea9625cd186065019e8133784e;hpb=efb90582c575084723cc14302c1300cb26c7e01f;p=firefly-linux-kernel-4.4.55.git diff --git a/include/linux/shrinker.h b/include/linux/shrinker.h index 790651b4e5ba..a83833a1f7a2 100644 --- a/include/linux/shrinker.h +++ b/include/linux/shrinker.h @@ -20,6 +20,7 @@ struct shrink_control { * 'nr_to_scan' entries and attempt to free them up. It should return * the number of objects which remain in the cache. If it returns -1, it means * it cannot do any scanning at this time (eg. there is a risk of deadlock). + * The callback must not return -1 if nr_to_scan is zero. * * The 'gfpmask' refers to the allocation we are currently trying to * fulfil.