summaryrefslogtreecommitdiffstats
path: root/net/ax25/ax25_timer.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.com>2017-01-06 14:19:58 +1100
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2017-01-30 13:14:50 -0500
commit4c3ffd058c28bb1aac30a68d1f02de4a2077823e (patch)
tree3afd78342fbc37768a92183936a309e99ad13fe9 /net/ax25/ax25_timer.c
parentddeaa6379d50a530f9f57b3d12f7940e079b052c (diff)
downloadlinux-4c3ffd058c28bb1aac30a68d1f02de4a2077823e.tar.bz2
SUNRPC: two small improvements to rpcauth shrinker.
1/ If we find an entry that is too young to be pruned, return SHRINK_STOP to ensure we don't get called again. This is more correct, and avoids wasting a little CPU time. Prior to 3.12, it can prevent drop_slab() from spinning indefinitely. 2/ Return a precise number from rpcauth_cache_shrink_count(), rather than rounding down to a multiple of 100 (of whatever sysctl_vfs_cache_pressure is). This ensures that when we "echo 3 > /proc/sys/vm/drop_caches", this cache is still purged, even if it has fewer than 100 entires. Neither of these are really important, they just make behaviour more predicatable, which can be helpful when debugging related issues. Signed-off-by: NeilBrown <neilb@suse.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'net/ax25/ax25_timer.c')
0 files changed, 0 insertions, 0 deletions