# git rev-parse -q --verify af0c9af1b3f66052c369d08be3f60fa9a9559e48^{commit} af0c9af1b3f66052c369d08be3f60fa9a9559e48 already have revision, skipping fetch # git checkout -q -f -B kisskb af0c9af1b3f66052c369d08be3f60fa9a9559e48 # git clean -qxdf # < git log -1 # commit af0c9af1b3f66052c369d08be3f60fa9a9559e48 # Author: Waiman Long # Date: Wed Jan 30 13:52:38 2019 -0500 # # fs/dcache: Track & report number of negative dentries # # The current dentry number tracking code doesn't distinguish between # positive & negative dentries. It just reports the total number of # dentries in the LRU lists. # # As excessive number of negative dentries can have an impact on system # performance, it will be wise to track the number of positive and # negative dentries separately. # # This patch adds tracking for the total number of negative dentries in # the system LRU lists and reports it in the 5th field in the # /proc/sys/fs/dentry-state file. The number, however, does not include # negative dentries that are in flight but not in the LRU yet as well as # those in the shrinker lists which are on the way out anyway. # # The number of positive dentries in the LRU lists can be roughly found by # subtracting the number of negative dentries from the unused count. # # Matthew Wilcox had confirmed that since the introduction of the # dentry_stat structure in 2.1.60, the dummy array was there, probably for # future extension. They were not replacements of pre-existing fields. # So no sane applications that read the value of /proc/sys/fs/dentry-state # will do dummy thing if the last 2 fields of the sysctl parameter are not # zero. IOW, it will be safe to use one of the dummy array entry for # negative dentry count. # # Signed-off-by: Waiman Long # Signed-off-by: Linus Torvalds # < /opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-gcc --version # < /opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-ld --version # < git log --format=%s --max-count=1 af0c9af1b3f66052c369d08be3f60fa9a9559e48 # < make -s -j 10 ARCH=powerpc O=/kisskb/build/linus_pseries_defconfig+NO_SPLPAR_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- pseries_defconfig # Added to kconfig CONFIG_PPC_SPLPAR=n # yes \n | make -s -j 10 ARCH=powerpc O=/kisskb/build/linus_pseries_defconfig+NO_SPLPAR_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- oldconfig yes: standard output: Broken pipe # make -s -j 10 ARCH=powerpc O=/kisskb/build/linus_pseries_defconfig+NO_SPLPAR_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- /kisskb/src/kernel/cgroup/cgroup-v1.c: In function 'cgroup1_mount': /kisskb/src/kernel/cgroup/cgroup-v1.c:1263:20: warning: 'root' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /kisskb/src/kernel/printk/printk.c:186:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/mm/hugetlb.c: In function 'alloc_pool_huge_page': /kisskb/src/mm/hugetlb.c:1434:5: warning: 'page' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/kernel/trace/trace_dynevent.c: In function 'create_dyn_event': /kisskb/src/kernel/trace/trace_dynevent.c:89:5: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/base/regmap/regmap.c: In function 'regmap_raw_read': /kisskb/src/drivers/base/regmap/regmap.c:2594:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/base/regmap/regmap.c: In function '_regmap_raw_write': /kisskb/src/drivers/base/regmap/regmap.c:1855:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/net/bridge/br_netlink.c: In function 'br_afspec.isra.28': /kisskb/src/net/bridge/br_netlink.c:652:7: warning: 'err' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/nfsd/nfs4xdr.c: In function 'nfsd4_encode_components_esc': /kisskb/src/fs/nfsd/nfs4xdr.c:2076:9: warning: 'str' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/i2c/i2c-core-base.c: In function 'i2c_generic_scl_recovery': /kisskb/src/drivers/i2c/i2c-core-base.c:235:5: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/proc/inode.c: In function 'proc_reg_open': /kisskb/src/include/linux/list.h:65:12: warning: 'pdeo' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/proc/inode.c:339:21: note: 'pdeo' was declared here /kisskb/src/fs/udf/unicode.c: In function 'udf_name_conv_char': /kisskb/src/fs/udf/unicode.c:132:8: warning: 'c' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/net/tun.c: In function 'tun_get_user': /kisskb/src/drivers/net/tun.c:1846:30: warning: 'copylen' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/net/tun.c:1756:46: warning: 'linear' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/tty/serial/8250/8250_core.c: In function 'univ8250_release_irq': /kisskb/src/drivers/tty/serial/8250/8250_core.c:247:18: warning: 'i' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/tty/serial/8250/8250_core.c:227:19: note: 'i' was declared here Completed OK # rm -rf /kisskb/build/linus_pseries_defconfig+NO_SPLPAR_powerpc-gcc4.6 # Build took: 0:04:30.036867