Commit c5356ab
uprobes: pass utask to xol_get_insn_slot() and xol_free_insn_slot()
Add the "struct uprobe_task *utask" argument to xol_get_insn_slot() and
xol_free_insn_slot(), their callers already have it so we can avoid the
unnecessary dereference and simplify the code.
Kill the "tsk" argument of xol_free_insn_slot(), it is always current.
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20240929144253.GA9487@redhat.com1 parent 1cee988 commit c5356ab
1 file changed
+8
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1647 | 1647 | | |
1648 | 1648 | | |
1649 | 1649 | | |
1650 | | - | |
| 1650 | + | |
1651 | 1651 | | |
1652 | | - | |
1653 | 1652 | | |
1654 | 1653 | | |
1655 | 1654 | | |
| |||
1664 | 1663 | | |
1665 | 1664 | | |
1666 | 1665 | | |
1667 | | - | |
| 1666 | + | |
1668 | 1667 | | |
1669 | | - | |
1670 | | - | |
| 1668 | + | |
| 1669 | + | |
1671 | 1670 | | |
1672 | | - | |
| 1671 | + | |
1673 | 1672 | | |
1674 | 1673 | | |
1675 | 1674 | | |
| |||
1951 | 1950 | | |
1952 | 1951 | | |
1953 | 1952 | | |
1954 | | - | |
| 1953 | + | |
1955 | 1954 | | |
1956 | 1955 | | |
1957 | 1956 | | |
1958 | 1957 | | |
1959 | 1958 | | |
1960 | 1959 | | |
1961 | 1960 | | |
1962 | | - | |
| 1961 | + | |
1963 | 1962 | | |
1964 | 1963 | | |
1965 | 1964 | | |
| |||
2307 | 2306 | | |
2308 | 2307 | | |
2309 | 2308 | | |
2310 | | - | |
| 2309 | + | |
2311 | 2310 | | |
2312 | 2311 | | |
2313 | 2312 | | |
| |||
0 commit comments