]> git.baikalelectronics.ru Git - kernel.git/commit
fs: remove fget_many and fput_many interface
authorGou Hao <gouhao@uniontech.com>
Tue, 2 Nov 2021 02:46:48 +0000 (10:46 +0800)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 14 May 2022 22:47:28 +0000 (18:47 -0400)
commita7913e597cd6a37ab9bc3d290560ab3a5d927630
treec680492afc83599e9f91bc028f7ddd2736418d15
parent4f1a85ba90efaa1fb5972cdfa4932980b8df85ab
fs: remove fget_many and fput_many interface

These two interface were added in 4ff8bf66d commit,
but now there is no place to call them.

The only user of fput/fget_many() was removed in commit
4c610ad69a0a ("io_uring: remove file batch-get optimisation").

A user of get_file_rcu_many() were removed in commit
d72d220f216f ("init: add an init_dup helper").

And replace atomic_long_sub/add to atomic_long_dec/inc
can improve performance.

Here are the test results of unixbench:

Cmd: ./Run -c 64 context1

Without patch:
System Benchmarks Partial Index              BASELINE       RESULT    INDEX
Pipe-based Context Switching                   4000.0    2798407.0   6996.0
                                                                   ========
System Benchmarks Index Score (Partial Only)                         6996.0

With patch:
System Benchmarks Partial Index              BASELINE       RESULT    INDEX
Pipe-based Context Switching                   4000.0    3486268.8   8715.7
                                                                   ========
System Benchmarks Index Score (Partial Only)                         8715.7

Signed-off-by: Gou Hao <gouhao@uniontech.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/file.c
fs/file_table.c
include/linux/file.h
include/linux/fs.h