<commit_before>/******************************************************************************
*******************************************************************************
**
**  Copyright (C) Sistina Software, Inc.  1997-2003  All rights reserved.
**  Copyright (C) 2004-2005 Red Hat, Inc.  All rights reserved.
**  
**  This copyrighted material is made available to anyone wishing to use,
**  modify, copy, or redistribute it subject to the terms and conditions
**  of the GNU General Public License v.2.
**
*******************************************************************************
******************************************************************************/

#define EXPORT_SYMTAB

#include "dlm_internal.h"
#include "lockspace.h"
#include "member.h"
#include "lock.h"
#include "device.h"
#include "memory.h"

int dlm_register_debugfs(void);
void dlm_unregister_debugfs(void);
int dlm_node_ioctl_init(void);
void dlm_node_ioctl_exit(void);

int __init init_dlm(void)
{
	int error;

	error = dlm_memory_init();
	if (error)
		goto out;

	error = dlm_lockspace_init();
	if (error)
		goto out_mem;

	error = dlm_node_ioctl_init();
	if (error)
		goto out_ls;

	error = dlm_member_init();
	if (error)
		goto out_node;

	error = dlm_register_debugfs();
	if (error)
		goto out_member;

	printk("DLM %s (built %s %s) installed\n",
	       DLM_RELEASE_NAME, __DATE__, __TIME__);

	return 0;

 out_member:
	dlm_member_exit();
 out_node:
	dlm_node_ioctl_exit();
 out_ls:
	dlm_lockspace_exit();
 out_mem:
	dlm_memory_exit();
 out:
	return error;
}

void __exit exit_dlm(void)
{
	dlm_member_exit();
	dlm_node_ioctl_exit();
	dlm_lockspace_exit();
	dlm_memory_exit();
	dlm_unregister_debugfs();
}

MODULE_DESCRIPTION("Distributed Lock Manager " DLM_RELEASE_NAME);
MODULE_AUTHOR("Red Hat, Inc.");
MODULE_LICENSE("GPL");

module_init(init_dlm);
module_exit(exit_dlm);

EXPORT_SYMBOL(dlm_new_lockspace);
EXPORT_SYMBOL(dlm_release_lockspace);<commit_msg>seems EXPORT_SYMBTAB isn't used any more<commit_after>/******************************************************************************
*******************************************************************************
**
**  Copyright (C) Sistina Software, Inc.  1997-2003  All rights reserved.
**  Copyright (C) 2004-2005 Red Hat, Inc.  All rights reserved.
**  
**  This copyrighted material is made available to anyone wishing to use,
**  modify, copy, or redistribute it subject to the terms and conditions
**  of the GNU General Public License v.2.
**
*******************************************************************************
******************************************************************************/

#include "dlm_internal.h"
#include "lockspace.h"
#include "member.h"
#include "lock.h"
#include "device.h"
#include "memory.h"

int dlm_register_debugfs(void);
void dlm_unregister_debugfs(void);
int dlm_node_ioctl_init(void);
void dlm_node_ioctl_exit(void);

int __init init_dlm(void)
{
	int error;

	error = dlm_memory_init();
	if (error)
		goto out;

	error = dlm_lockspace_init();
	if (error)
		goto out_mem;

	error = dlm_node_ioctl_init();
	if (error)
		goto out_ls;

	error = dlm_member_init();
	if (error)
		goto out_node;

	error = dlm_register_debugfs();
	if (error)
		goto out_member;

	printk("DLM %s (built %s %s) installed\n",
	       DLM_RELEASE_NAME, __DATE__, __TIME__);

	return 0;

 out_member:
	dlm_member_exit();
 out_node:
	dlm_node_ioctl_exit();
 out_ls:
	dlm_lockspace_exit();
 out_mem:
	dlm_memory_exit();
 out:
	return error;
}

void __exit exit_dlm(void)
{
	dlm_member_exit();
	dlm_node_ioctl_exit();
	dlm_lockspace_exit();
	dlm_memory_exit();
	dlm_unregister_debugfs();
}

module_init(init_dlm);
module_exit(exit_dlm);

MODULE_DESCRIPTION("Distributed Lock Manager " DLM_RELEASE_NAME);
MODULE_AUTHOR("Red Hat, Inc.");
MODULE_LICENSE("GPL");

EXPORT_SYMBOL(dlm_new_lockspace);
EXPORT_SYMBOL(dlm_release_lockspace);
{'fraction_non_alphanumeric': 0.2612704918032787, 'fraction_numerical': 0.009221311475409836, 'mean_word_length': 6.553191489361702, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5157881', 'n_tokens_mistral': 1353, 'n_tokens_neox': 1274, 'n_words': 296}