File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -259,7 +259,7 @@ static unsigned long ksm_stable_node_chains;
259
259
static unsigned long ksm_stable_node_dups ;
260
260
261
261
/* Delay in pruning stale stable_node_dups in the stable_node_chains */
262
- static int ksm_stable_node_chains_prune_millisecs = 2000 ;
262
+ static unsigned int ksm_stable_node_chains_prune_millisecs = 2000 ;
263
263
264
264
/* Maximum number of page slots sharing a stable node */
265
265
static int ksm_max_page_sharing = 256 ;
@@ -3105,11 +3105,11 @@ stable_node_chains_prune_millisecs_store(struct kobject *kobj,
3105
3105
struct kobj_attribute * attr ,
3106
3106
const char * buf , size_t count )
3107
3107
{
3108
- unsigned long msecs ;
3108
+ unsigned int msecs ;
3109
3109
int err ;
3110
3110
3111
- err = kstrtoul (buf , 10 , & msecs );
3112
- if (err || msecs > UINT_MAX )
3111
+ err = kstrtouint (buf , 10 , & msecs );
3112
+ if (err )
3113
3113
return - EINVAL ;
3114
3114
3115
3115
ksm_stable_node_chains_prune_millisecs = msecs ;
You can’t perform that action at this time.
0 commit comments