diff options
author | 2024-01-12 09:09:14 +0100 | |
---|---|---|
committer | 2024-01-13 13:06:25 +0100 | |
commit | ba5afb9a84df2e6b26a1b6389b98849cd16ea757 (patch) | |
tree | 5829dd309fc8910ff586e6fda90b07d09ca9962f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | fsnotify: compile out fsnotify permission hooks if !FANOTIFY_ACCESS_PERMISSIONS (diff) | |
download | linux-rng-ba5afb9a84df2e6b26a1b6389b98849cd16ea757.tar.xz linux-rng-ba5afb9a84df2e6b26a1b6389b98849cd16ea757.zip |
fs: rework listmount() implementation
Linus pointed out that there's error handling and naming issues in the
that we should rewrite:
* Perform the access checks for the buffer before actually doing any
work instead of doing it during the iteration.
* Rename the arguments to listmount() and do_listmount() to clarify what
the arguments are used for.
* Get rid of the pointless ctr variable and overflow checking.
* Get rid of the pointless speculation check.
Link: https://lore.kernel.org/r/CAHk-=wjh6Cypo8WC-McXgSzCaou3UXccxB+7PVeSuGR8AjCphg@mail.gmail.com
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions