diff options
author | 2025-03-05 13:36:41 +0100 | |
---|---|---|
committer | 2025-03-05 18:30:00 +0100 | |
commit | e83588458f656417d9b7ac45baf1c7b45790059b (patch) | |
tree | 0e8c70a87c265e0341d4e16b78f1d8d1872126b9 /scripts/generate_rust_analyzer.py | |
parent | fs: predict no error in close() (diff) | |
download | wireguard-linux-e83588458f656417d9b7ac45baf1c7b45790059b.tar.xz wireguard-linux-e83588458f656417d9b7ac45baf1c7b45790059b.zip |
file: add fput and file_ref_put routines optimized for use when closing a fd
Vast majority of the time closing a file descriptor also operates on the
last reference, where a regular fput usage will result in 2 atomics.
This can be changed to only suffer 1.
See commentary above file_ref_put_close() for more information.
Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Link: https://lore.kernel.org/r/20250305123644.554845-2-mjguzik@gmail.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions