]> git.baikalelectronics.ru Git - kernel.git/commit
sysctl: Make the header lists per directory.
authorEric W. Biederman <ebiederm@xmission.com>
Sun, 8 Jan 2012 07:45:12 +0000 (23:45 -0800)
committerEric W. Biederman <ebiederm@xmission.com>
Wed, 25 Jan 2012 00:40:30 +0000 (16:40 -0800)
commiteec10bd8944028915b3259690d96435505970329
tree8c7fe500d2cefdf99b1128e60178045a39f1a864
parent2bd041a1250cbc04da85e045b5d230965a249e4c
sysctl: Make the header lists per directory.

Slightly enhance efficiency and clarity of the code by making the
header list per directory instead of per set.

Benchmark before:
    make-dummies 0 999 -> 0.63s
    rmmod dummy        -> 0.12s
    make-dummies 0 9999 -> 2m35s
    rmmod dummy         -> 18s

Benchmark after:
    make-dummies 0 999 -> 0.32s
    rmmod dummy        -> 0.12s
    make-dummies 0 9999 -> 1m17s
    rmmod dummy         -> 17s

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
fs/proc/proc_sysctl.c
include/linux/sysctl.h