ceph: get rid of passing callbacks in __dentry_leases_walk()
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 20 Dec 2023 05:29:25 +0000 (05:29 +0000)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 15 Jan 2024 14:54:54 +0000 (15:54 +0100)
commit2a965d1b15d28065b35ab4ebd1e51558fcd91aa5
tree4e7b31e75425d942f48c77a6462d1d3ced82e3f6
parentf6fb21b22fbe443f92b0d580391a7fb46d1840df
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>
fs/ceph/dir.c