aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorAl Viro <[email protected]>2023-11-26 02:08:34 +0000
committerChristian Brauner <[email protected]>2023-12-12 14:24:09 +0100
commit7cb537b6f6d7d6529be04139178f929d9a63b918 (patch)
tree21261fb352f5a3c788e01b5d418869225b17ea54 /tools/testing/selftests/bpf/prog_tests/autoload.c
parentb85ea95d086471afb4ad062012a4d73cd328fa86 (diff)
file: massage cleanup of files that failed to open
A file that has never gotten FMODE_OPENED will never have RCU-accessed references, its final fput() is equivalent to file_free() and if it doesn't have FMODE_BACKING either, it can be done from any context and won't need task_work treatment. Now that we have SLAB_TYPESAFE_BY_RCU we can simplify this and have other callers benefit. All of that can be achieved easier is to make fput() recoginze that case and call file_free() directly. No need to introduce a special primitive for that. It also allowed things like failing dentry_open() could benefit from that as well. Signed-off-by: Al Viro <[email protected]> [Christian Brauner <[email protected]>: massage commit message] Link: https://lore.kernel.org/r/20231126020834.GC38156@ZenIV Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions