/* lookup_mnt increments the ref count before returning the vfsmount struct.  */
struct vfsmount* lookup_mnt(struct path *path)
/* lookup_mnt increments the ref count before returning the vfsmount struct.  */
struct vfsmount* lookup_mnt(struct path *path)
{
	struct vfsmount *child_mnt;
	spin_lock(&vfsmount_lock);
	if ((child_mnt = __lookup_mnt(path->mnt, path->dentry, 1)))
		mntget(child_mnt);
	spin_unlock(&vfsmount_lock);
	return child_mnt;
}