mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-29 01:05:29 +00:00
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:
parent
76e342d32f
commit
cc5580bca3
@ -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;
|
||||
|
@ -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];
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user