Whamcloud - gitweb
LU-17566 mdt: remove duplicate call to mdt_init_ucred_reint()
authorAurelien Degremont <adegremont@nvidia.com>
Tue, 20 Feb 2024 11:46:03 +0000 (12:46 +0100)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 16 Mar 2024 08:18:47 +0000 (08:18 +0000)
commit2b8b57b4f353c6cb58a654eda518c9b418457371
treecb3b8c54348cc4c934720d125ba87d8acc7fcda4
parent3c6071fde98bb6b5de7a9ce5cbec06e911bfe834
LU-17566 mdt: remove duplicate call to mdt_init_ucred_reint()

Remove duplicate call to mdt_init_ucred_reint() from
mdt_reint_setxattr().

mdt_init_ucred_reint() is called in mdt_reint_internal() which is
covering all actual reinters. However, SETXATTR was converted to
reinters framework in fd908da and this call was not removed.
So mdt_init_ucred_reint() is called first in mdt_reint_internal() then
again in the specific mdt_reint_setxattr() handler, without anything
special being done on the ucred between them.

Also merge __mdt_init_ucred() and mdt_init_cred() which was
called only once, and with the same prototype.

Lustre-change: https://review.whamcloud.com/54111
Lustre-commit: 65e0802f2ada98f802d01b5672bb9349ad0dde8c

Signed-off-by: Aurelien Degremont <adegremont@nvidia.com>
Change-Id: I90fed1d2709edf7337a27dd9c3cb0f75f7625135
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/54368
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/mdt/mdt_lib.c
lustre/mdt/mdt_xattr.c