mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
ceph: __{dir,dentry}_lease_check() returns an enum
The declaration of these return valued (KEEP, DELETE, TOUCH, STOP) and their use in __dentry_leases_walk() suggests that these are bit flags, but there is only ever one bit set. Converting these to a non-anonymous enum expresses the intent more clearly. [ idryomov: comment on enum lease_check_result isn't a kernel-doc comment ] Signed-off-by: Max Kellermann <max.kellermann@ionos.com> Reviewed-by: Alex Markuze <amarkuze@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
This commit is contained in:
parent
3f8bbbb580
commit
45bd40c81a
1 changed files with 19 additions and 15 deletions
Loading…
Add table
Add a link
Reference in a new issue