aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorYu Ma <[email protected]>2024-07-17 10:50:16 -0400
committerAl Viro <[email protected]>2024-10-07 13:34:41 -0400
commit52732bb9abc9ee5b82ed62edef51be4a255fc78a (patch)
treec5f96b507fe7d857c5f4a125c8a9605390ff2e12 /tools/perf/scripts/python/export-to-sqlite.py
parentcab0515211f483e392d6862021ed008f49058561 (diff)
fs/file.c: remove sanity_check and add likely/unlikely in alloc_fd()
alloc_fd() has a sanity check inside to make sure the struct file mapping to the allocated fd is NULL. Remove this sanity check since it can be assured by exisitng zero initilization and NULL set when recycling fd. Meanwhile, add likely/unlikely and expand_file() call avoidance to reduce the work under file_lock. Reviewed-by: Jan Kara <[email protected]> Reviewed-by: Tim Chen <[email protected]> Signed-off-by: Yu Ma <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Christian Brauner <[email protected]> Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions