diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2025-03-24 13:19:17 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2025-03-24 13:19:17 -0700 |
commit | 912b82dc0b27abc407c831e74fbcbdebfe19997b (patch) | |
tree | 0a1f074db125a6c6f57bc1a01f9fc97a84bed004 /tools/testing/selftests/bpf/prog_tests/access_variable_array.c | |
parent | d41066dd76eb86f7fab45cf19d0a04e97e5c339f (diff) | |
parent | 5370b43e4bcf60049bfd44db83ba8d2ec43d0152 (diff) | |
download | lwn-912b82dc0b27abc407c831e74fbcbdebfe19997b.tar.gz lwn-912b82dc0b27abc407c831e74fbcbdebfe19997b.zip |
Merge tag 'vfs-6.15-rc1.file' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs
Pull vfs file handling updates from Christian Brauner:
"This contains performance improvements for struct file's new refcount
mechanism and various other performance work:
- The stock kernel transitioning the file to no refs held penalizes
the caller with an extra atomic to block any increments. For cases
where the file is highly likely to be going away this is easily
avoidable.
Add file_ref_put_close() to better handle the common case where
closing a file descriptor also operates on the last reference and
build fput_close_sync() and fput_close() on top of it. This brings
about 1% performance improvement by eliding one atomic in the
common case.
- Predict no error in close() since the vast majority of the time
system call returns 0.
- Reduce the work done in fdget_pos() by predicting that the file was
found and by explicitly comparing the reference count to one and
ignoring the dead zone"
* tag 'vfs-6.15-rc1.file' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs:
fs: reduce work in fdget_pos()
fs: use fput_close() in path_openat()
fs: use fput_close() in filp_close()
fs: use fput_close_sync() in close()
file: add fput and file_ref_put routines optimized for use when closing a fd
fs: predict no error in close()
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/access_variable_array.c')
0 files changed, 0 insertions, 0 deletions