cred: add get_cred_many and put_cred_many
authorMateusz Guzik <mjguzik@gmail.com>
Sat, 9 Sep 2023 19:19:32 +0000 (21:19 +0200)
committerPaul Moore <paul@paul-moore.com>
Thu, 21 Sep 2023 23:29:30 +0000 (19:29 -0400)
commit41e845628511878d6e89e2a9249c095e72aab7eb
tree4c23b005302b82e9987a21af0391c7ab3a32f623
parent20a2aa47097aae7016209c4dbe392b3b25e0d883
cred: add get_cred_many and put_cred_many

Some of the frequent consumers of get_cred and put_cred operate on 2
references on the same creds back-to-back.

Switch them to doing the work in one go instead.

Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
[PM: removed changelog from commit description]
Signed-off-by: Paul Moore <paul@paul-moore.com>
include/linux/cred.h
kernel/cred.c