sysctl: avoid stat() on every item if in -w mode
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 8 Feb 2019 13:27:21 +0000 (14:27 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 8 Feb 2019 13:27:21 +0000 (14:27 +0100)
commit679c30e73eda275085676f51fc77ee18c84edf21
tree163f4f8eeb6eceb4e42e8a82cb1d53ae1f83049c
parent317498f3b3335ee9b9944929ffae16f07e1ebd2d
sysctl: avoid stat() on every item if in -w mode

function                                             old     new   delta
sysctl_act_recursive                                 163     167      +4

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
procps/sysctl.c