aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/msdosfs
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2021-08-01 17:11:40 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2021-08-27 15:39:45 +0000
commit92d4e088274c7ada268645588503f22f390c5fb8 (patch)
treeb72cf7b052ae6208760da9237cfbbf47be4df7e5 /sys/fs/msdosfs
parent6e1df1d14c6dfcc209c1416ec0832e4d08191c72 (diff)
downloadsrc-92d4e088274c7ada268645588503f22f390c5fb8.tar.gz
src-92d4e088274c7ada268645588503f22f390c5fb8.zip
msdosfs: unstaticise msdosfs_lookup_
and rename it to msdosfs_lookup_ino(), similarly to UFS Reviewed by: mckusick Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D31464
Diffstat (limited to 'sys/fs/msdosfs')
-rw-r--r--sys/fs/msdosfs/denode.h2
-rw-r--r--sys/fs/msdosfs/msdosfs_lookup.c11
2 files changed, 6 insertions, 7 deletions
diff --git a/sys/fs/msdosfs/denode.h b/sys/fs/msdosfs/denode.h
index 7c838b5cc81c..f133f3f90cd6 100644
--- a/sys/fs/msdosfs/denode.h
+++ b/sys/fs/msdosfs/denode.h
@@ -267,6 +267,8 @@ extern struct vop_vector msdosfs_vnodeops;
int msdosfs_lookup(struct vop_cachedlookup_args *);
int msdosfs_inactive(struct vop_inactive_args *);
int msdosfs_reclaim(struct vop_reclaim_args *);
+int msdosfs_lookup_ino(struct vnode *vdp, struct vnode **vpp,
+ struct componentname *cnp, uint64_t *inum);
#endif
/*
diff --git a/sys/fs/msdosfs/msdosfs_lookup.c b/sys/fs/msdosfs/msdosfs_lookup.c
index a32b0372243c..bdfff7bf3206 100644
--- a/sys/fs/msdosfs/msdosfs_lookup.c
+++ b/sys/fs/msdosfs/msdosfs_lookup.c
@@ -63,14 +63,11 @@
#include <fs/msdosfs/fat.h>
#include <fs/msdosfs/msdosfsmount.h>
-static int msdosfs_lookup_(struct vnode *vdp, struct vnode **vpp,
- struct componentname *cnp, uint64_t *inum);
-
int
msdosfs_lookup(struct vop_cachedlookup_args *ap)
{
- return (msdosfs_lookup_(ap->a_dvp, ap->a_vpp, ap->a_cnp, NULL));
+ return (msdosfs_lookup_ino(ap->a_dvp, ap->a_vpp, ap->a_cnp, NULL));
}
struct deget_dotdot {
@@ -110,8 +107,8 @@ msdosfs_deget_dotdot(struct mount *mp, void *arg, int lkflags,
* out to disk. This way disk blocks containing directory entries and in
* memory denode's will be in synch.
*/
-static int
-msdosfs_lookup_(struct vnode *vdp, struct vnode **vpp,
+int
+msdosfs_lookup_ino(struct vnode *vdp, struct vnode **vpp,
struct componentname *cnp, uint64_t *dd_inum)
{
struct mbnambuf nb;
@@ -558,7 +555,7 @@ foundroot:
* Recheck that ".." still points to the inode we
* looked up before pdp lock was dropped.
*/
- error = msdosfs_lookup_(pdp, NULL, cnp, &inode1);
+ error = msdosfs_lookup_ino(pdp, NULL, cnp, &inode1);
if (error) {
vput(*vpp);
*vpp = NULL;