diff options
author | Johannes Weiner <[email protected]> | 2022-11-28 11:16:11 -0800 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2022-12-11 18:12:10 -0800 |
commit | 6a05aa30109d5cd4bebfb89415c58fa4599ef875 (patch) | |
tree | e5d0f3070d6cc39e100328c1263f86719248ee30 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 6b3379e8dcbea09b7e27bf0eea2f53fd15a164ac (diff) |
zpool: clean out dead code
There is a lot of provision for flexibility that isn't actually needed or
used. Zswap (the only zpool user) always passes zpool_ops with an .evict
method set. The backends who reclaim only do so for zswap, so they can
also directly call zpool_ops without indirection or checks.
Finally, there is no need to check the retries parameters and bail with
-EINVAL in the reclaim function, when that's called just a few lines below
with a hard-coded 8. There is no need to duplicate the evictable and
sleep_mapped attrs from the driver in zpool_ops.
Link: https://lkml.kernel.org/r/[email protected]
Reviewed-by: Sergey Senozhatsky <[email protected]>
Signed-off-by: Johannes Weiner <[email protected]>
Signed-off-by: Nhat Pham <[email protected]>
Cc: Dan Streetman <[email protected]>
Cc: Minchan Kim <[email protected]>
Cc: Nitin Gupta <[email protected]>
Cc: Seth Jennings <[email protected]>
Cc: Vitaly Wool <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions