diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2023-11-03 14:46:14 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2023-11-25 02:34:13 -0500 |
commit | b4cc0734d25746d402db3baa6082d19109bca951 (patch) | |
tree | b704ddc51d71377992d42ec0c78d349be8e07769 /scripts/gdb/linux/clk.py | |
parent | f5c8a8a4b6c90f2160de6b580fa672b4afc15061 (diff) |
d_prune_aliases(): use a shrink list
Instead of dropping aliases one by one, restarting, etc., just
collect them into a shrink list and kill them off in one pass.
We don't really need the restarts - one alias can't pin another
(directory has only one alias, and couldn't be its own ancestor
anyway), so collecting everything that is not busy and taking it
out would take care of everything evictable that had been there
as we entered the function. And new aliases added while we'd
been dropping old ones could just as easily have appeared right
as we return to caller...
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'scripts/gdb/linux/clk.py')
0 files changed, 0 insertions, 0 deletions