diff options
author | Mateusz Guzik <mjguzik@gmail.com> | 2025-03-05 13:36:41 +0100 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2025-03-05 18:30:00 +0100 |
commit | e83588458f656417d9b7ac45baf1c7b45790059b (patch) | |
tree | 0e8c70a87c265e0341d4e16b78f1d8d1872126b9 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 23e490336467fcdaf95e1efcf8f58067b59f647b (diff) |
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 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions