afs: refactor PNewStatMount and PFlushMount 41/14541/8
authorMarcio Barbosa <mbarbosa@sinenomine.net>
Tue, 17 Aug 2021 19:52:11 +0000 (19:52 +0000)
committerBenjamin Kaduk <kaduk@mit.edu>
Tue, 17 Aug 2021 21:50:21 +0000 (17:50 -0400)
commit981bc005f8161ca9ee52ea281c7d73e0e4e2461a
treef96b5d315cbb615b4ad8d0f3dc051a8124ab4c29
parent71acc392a399d70aec033dfe31f010d6f5cfb565
afs: refactor PNewStatMount and PFlushMount

Both functions use the same logic to find a name in a given directory.
To avoid repetition, move this logic to a separate function called
afs_LookupName().

No functional change is incurred by this commit.

Change-Id: Ic5da09091e7050dd5f91adc7a413328edfb8292d
Reviewed-on: https://gerrit.openafs.org/14541
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/afs/afs_pioctl.c