dlm: dlm_config_info config fields to unsigned int

We are using kstrtouint() to parse common integer fields. This patch
will switch to use unsigned int instead of int as we are parsing
unsigned integer values.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
This commit is contained in:
Alexander Aring 2024-10-04 11:13:42 -04:00 committed by David Teigland
parent 76e342d32f
commit cc5580bca3
2 changed files with 13 additions and 12 deletions

View File

@ -153,7 +153,8 @@ static ssize_t cluster_tcp_port_store(struct config_item *item,
CONFIGFS_ATTR(cluster_, tcp_port);
static ssize_t cluster_set(int *info_field, int (*check_cb)(unsigned int x),
static ssize_t cluster_set(unsigned int *info_field,
int (*check_cb)(unsigned int x),
const char *buf, size_t len)
{
unsigned int x;

View File

@ -30,17 +30,17 @@ extern const struct rhashtable_params dlm_rhash_rsb_params;
struct dlm_config_info {
__be16 ci_tcp_port;
int ci_buffer_size;
int ci_rsbtbl_size;
int ci_recover_timer;
int ci_toss_secs;
int ci_scan_secs;
int ci_log_debug;
int ci_log_info;
int ci_protocol;
int ci_mark;
int ci_new_rsb_count;
int ci_recover_callbacks;
unsigned int ci_buffer_size;
unsigned int ci_rsbtbl_size;
unsigned int ci_recover_timer;
unsigned int ci_toss_secs;
unsigned int ci_scan_secs;
unsigned int ci_log_debug;
unsigned int ci_log_info;
unsigned int ci_protocol;
unsigned int ci_mark;
unsigned int ci_new_rsb_count;
unsigned int ci_recover_callbacks;
char ci_cluster_name[DLM_LOCKSPACE_LEN];
};