Commit 2a965d1
ceph: get rid of passing callbacks in __dentry_leases_walk()
__dentry_leases_walk() gets a callback and calls it for
a bunch of denties; there are exactly two callers and
we already have a flag telling them apart - lwc->dir_lease.
Seeing that indirect calls are costly these days, let's
get rid of the callback and just call the right function
directly. Has a side benefit of saner signatures...
[ xiubli: a minor fix in the commit title ]
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>1 parent f6fb21b commit 2a965d1
1 file changed
Lines changed: 13 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1593 | 1593 | | |
1594 | 1594 | | |
1595 | 1595 | | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
1596 | 1599 | | |
1597 | 1600 | | |
1598 | | - | |
1599 | | - | |
| 1601 | + | |
1600 | 1602 | | |
1601 | 1603 | | |
1602 | 1604 | | |
| |||
1624 | 1626 | | |
1625 | 1627 | | |
1626 | 1628 | | |
1627 | | - | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
1628 | 1633 | | |
1629 | 1634 | | |
1630 | 1635 | | |
| |||
1681 | 1686 | | |
1682 | 1687 | | |
1683 | 1688 | | |
1684 | | - | |
| 1689 | + | |
1685 | 1690 | | |
1686 | 1691 | | |
1687 | 1692 | | |
| |||
1696 | 1701 | | |
1697 | 1702 | | |
1698 | 1703 | | |
1699 | | - | |
| 1704 | + | |
| 1705 | + | |
1700 | 1706 | | |
1701 | | - | |
1702 | 1707 | | |
1703 | 1708 | | |
1704 | 1709 | | |
| |||
1737 | 1742 | | |
1738 | 1743 | | |
1739 | 1744 | | |
1740 | | - | |
| 1745 | + | |
1741 | 1746 | | |
1742 | 1747 | | |
1743 | 1748 | | |
| |||
1747 | 1752 | | |
1748 | 1753 | | |
1749 | 1754 | | |
1750 | | - | |
| 1755 | + | |
1751 | 1756 | | |
1752 | 1757 | | |
1753 | 1758 | | |
| |||
0 commit comments