<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.
 */

#include <linux/init.h>

#include "lock_dlm.h"

extern int gdlm_drop_count;
extern int gdlm_drop_period;

extern struct lm_lockops gdlm_ops;

int __init init_lock_dlm(void)
{
	int error;

	error = lm_register_proto(&gdlm_ops);
	if (error) {
		printk("lock_dlm:  can't register protocol: %d\n", error);
		return error;
	}

	error = gdlm_sysfs_init();
	if (error) {
		lm_unregister_proto(&gdlm_ops);
		return error;
	}

	error = gdlm_plock_init();
	if (error) {
		gdlm_sysfs_exit();
		lm_unregister_proto(&gdlm_ops);
		return error;
	}

	gdlm_drop_count = GDLM_DROP_COUNT;
	gdlm_drop_period = GDLM_DROP_PERIOD;

	log_info("(built %s %s) installed", __DATE__, __TIME__);
	return 0;
}

void __exit exit_lock_dlm(void)
{
	gdlm_plock_exit();
	gdlm_sysfs_exit();
	lm_unregister_proto(&gdlm_ops);
}

module_init(init_lock_dlm);
module_exit(exit_lock_dlm);

MODULE_DESCRIPTION("GFS DLM Locking Module");
MODULE_AUTHOR("Red Hat, Inc.");
MODULE_LICENSE("GPL");
<commit_msg>put back previous insmod printk<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 <linux/init.h>

#include "lock_dlm.h"

extern int gdlm_drop_count;
extern int gdlm_drop_period;

extern struct lm_lockops gdlm_ops;

int __init init_lock_dlm(void)
{
	int error;

	error = lm_register_proto(&gdlm_ops);
	if (error) {
		printk("lock_dlm:  can't register protocol: %d\n", error);
		return error;
	}

	error = gdlm_sysfs_init();
	if (error) {
		lm_unregister_proto(&gdlm_ops);
		return error;
	}

	error = gdlm_plock_init();
	if (error) {
		gdlm_sysfs_exit();
		lm_unregister_proto(&gdlm_ops);
		return error;
	}

	gdlm_drop_count = GDLM_DROP_COUNT;
	gdlm_drop_period = GDLM_DROP_PERIOD;

	printk("Lock_DLM (built %s %s) installed", __DATE__, __TIME__);
	return 0;
}

void __exit exit_lock_dlm(void)
{
	gdlm_plock_exit();
	gdlm_sysfs_exit();
	lm_unregister_proto(&gdlm_ops);
}

module_init(init_lock_dlm);
module_exit(exit_lock_dlm);

MODULE_DESCRIPTION("GFS DLM Locking Module");
MODULE_AUTHOR("Red Hat, Inc.");
MODULE_LICENSE("GPL");

{'fraction_non_alphanumeric': 0.11342155009451796, 'fraction_numerical': 0.013610586011342156, 'mean_word_length': 5.125, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6479214', 'n_tokens_mistral': 1085, 'n_tokens_neox': 1028, 'n_words': 249}