diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/slow-work.c | 2 | ||||
-rw-r--r-- | kernel/sysctl.c | 266 |
2 files changed, 134 insertions, 134 deletions
diff --git a/kernel/slow-work.c b/kernel/slow-work.c index 0134b15b38d8..ebd9a8317a76 100644 --- a/kernel/slow-work.c +++ b/kernel/slow-work.c | |||
@@ -74,7 +74,7 @@ ctl_table slow_work_sysctls[] = { | |||
74 | .data = &vslow_work_proportion, | 74 | .data = &vslow_work_proportion, |
75 | .maxlen = sizeof(unsigned), | 75 | .maxlen = sizeof(unsigned), |
76 | .mode = 0644, | 76 | .mode = 0644, |
77 | .proc_handler = &proc_dointvec_minmax, | 77 | .proc_handler = proc_dointvec_minmax, |
78 | .extra1 = (void *) &slow_work_min_vslow, | 78 | .extra1 = (void *) &slow_work_min_vslow, |
79 | .extra2 = (void *) &slow_work_max_vslow, | 79 | .extra2 = (void *) &slow_work_max_vslow, |
80 | }, | 80 | }, |
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index b4a5763d6dc8..e2ccc89382cb 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -249,7 +249,7 @@ static struct ctl_table kern_table[] = { | |||
249 | .data = &sysctl_sched_child_runs_first, | 249 | .data = &sysctl_sched_child_runs_first, |
250 | .maxlen = sizeof(unsigned int), | 250 | .maxlen = sizeof(unsigned int), |
251 | .mode = 0644, | 251 | .mode = 0644, |
252 | .proc_handler = &proc_dointvec, | 252 | .proc_handler = proc_dointvec, |
253 | }, | 253 | }, |
254 | #ifdef CONFIG_SCHED_DEBUG | 254 | #ifdef CONFIG_SCHED_DEBUG |
255 | { | 255 | { |
@@ -257,7 +257,7 @@ static struct ctl_table kern_table[] = { | |||
257 | .data = &sysctl_sched_min_granularity, | 257 | .data = &sysctl_sched_min_granularity, |
258 | .maxlen = sizeof(unsigned int), | 258 | .maxlen = sizeof(unsigned int), |
259 | .mode = 0644, | 259 | .mode = 0644, |
260 | .proc_handler = &sched_nr_latency_handler, | 260 | .proc_handler = sched_nr_latency_handler, |
261 | .extra1 = &min_sched_granularity_ns, | 261 | .extra1 = &min_sched_granularity_ns, |
262 | .extra2 = &max_sched_granularity_ns, | 262 | .extra2 = &max_sched_granularity_ns, |
263 | }, | 263 | }, |
@@ -266,7 +266,7 @@ static struct ctl_table kern_table[] = { | |||
266 | .data = &sysctl_sched_latency, | 266 | .data = &sysctl_sched_latency, |
267 | .maxlen = sizeof(unsigned int), | 267 | .maxlen = sizeof(unsigned int), |
268 | .mode = 0644, | 268 | .mode = 0644, |
269 | .proc_handler = &sched_nr_latency_handler, | 269 | .proc_handler = sched_nr_latency_handler, |
270 | .extra1 = &min_sched_granularity_ns, | 270 | .extra1 = &min_sched_granularity_ns, |
271 | .extra2 = &max_sched_granularity_ns, | 271 | .extra2 = &max_sched_granularity_ns, |
272 | }, | 272 | }, |
@@ -275,7 +275,7 @@ static struct ctl_table kern_table[] = { | |||
275 | .data = &sysctl_sched_wakeup_granularity, | 275 | .data = &sysctl_sched_wakeup_granularity, |
276 | .maxlen = sizeof(unsigned int), | 276 | .maxlen = sizeof(unsigned int), |
277 | .mode = 0644, | 277 | .mode = 0644, |
278 | .proc_handler = &proc_dointvec_minmax, | 278 | .proc_handler = proc_dointvec_minmax, |
279 | .extra1 = &min_wakeup_granularity_ns, | 279 | .extra1 = &min_wakeup_granularity_ns, |
280 | .extra2 = &max_wakeup_granularity_ns, | 280 | .extra2 = &max_wakeup_granularity_ns, |
281 | }, | 281 | }, |
@@ -284,14 +284,14 @@ static struct ctl_table kern_table[] = { | |||
284 | .data = &sysctl_sched_shares_ratelimit, | 284 | .data = &sysctl_sched_shares_ratelimit, |
285 | .maxlen = sizeof(unsigned int), | 285 | .maxlen = sizeof(unsigned int), |
286 | .mode = 0644, | 286 | .mode = 0644, |
287 | .proc_handler = &proc_dointvec, | 287 | .proc_handler = proc_dointvec, |
288 | }, | 288 | }, |
289 | { | 289 | { |
290 | .procname = "sched_shares_thresh", | 290 | .procname = "sched_shares_thresh", |
291 | .data = &sysctl_sched_shares_thresh, | 291 | .data = &sysctl_sched_shares_thresh, |
292 | .maxlen = sizeof(unsigned int), | 292 | .maxlen = sizeof(unsigned int), |
293 | .mode = 0644, | 293 | .mode = 0644, |
294 | .proc_handler = &proc_dointvec_minmax, | 294 | .proc_handler = proc_dointvec_minmax, |
295 | .extra1 = &zero, | 295 | .extra1 = &zero, |
296 | }, | 296 | }, |
297 | { | 297 | { |
@@ -299,35 +299,35 @@ static struct ctl_table kern_table[] = { | |||
299 | .data = &sysctl_sched_features, | 299 | .data = &sysctl_sched_features, |
300 | .maxlen = sizeof(unsigned int), | 300 | .maxlen = sizeof(unsigned int), |
301 | .mode = 0644, | 301 | .mode = 0644, |
302 | .proc_handler = &proc_dointvec, | 302 | .proc_handler = proc_dointvec, |
303 | }, | 303 | }, |
304 | { | 304 | { |
305 | .procname = "sched_migration_cost", | 305 | .procname = "sched_migration_cost", |
306 | .data = &sysctl_sched_migration_cost, | 306 | .data = &sysctl_sched_migration_cost, |
307 | .maxlen = sizeof(unsigned int), | 307 | .maxlen = sizeof(unsigned int), |
308 | .mode = 0644, | 308 | .mode = 0644, |
309 | .proc_handler = &proc_dointvec, | 309 | .proc_handler = proc_dointvec, |
310 | }, | 310 | }, |
311 | { | 311 | { |
312 | .procname = "sched_nr_migrate", | 312 | .procname = "sched_nr_migrate", |
313 | .data = &sysctl_sched_nr_migrate, | 313 | .data = &sysctl_sched_nr_migrate, |
314 | .maxlen = sizeof(unsigned int), | 314 | .maxlen = sizeof(unsigned int), |
315 | .mode = 0644, | 315 | .mode = 0644, |
316 | .proc_handler = &proc_dointvec, | 316 | .proc_handler = proc_dointvec, |
317 | }, | 317 | }, |
318 | { | 318 | { |
319 | .procname = "sched_time_avg", | 319 | .procname = "sched_time_avg", |
320 | .data = &sysctl_sched_time_avg, | 320 | .data = &sysctl_sched_time_avg, |
321 | .maxlen = sizeof(unsigned int), | 321 | .maxlen = sizeof(unsigned int), |
322 | .mode = 0644, | 322 | .mode = 0644, |
323 | .proc_handler = &proc_dointvec, | 323 | .proc_handler = proc_dointvec, |
324 | }, | 324 | }, |
325 | { | 325 | { |
326 | .procname = "timer_migration", | 326 | .procname = "timer_migration", |
327 | .data = &sysctl_timer_migration, | 327 | .data = &sysctl_timer_migration, |
328 | .maxlen = sizeof(unsigned int), | 328 | .maxlen = sizeof(unsigned int), |
329 | .mode = 0644, | 329 | .mode = 0644, |
330 | .proc_handler = &proc_dointvec_minmax, | 330 | .proc_handler = proc_dointvec_minmax, |
331 | .extra1 = &zero, | 331 | .extra1 = &zero, |
332 | .extra2 = &one, | 332 | .extra2 = &one, |
333 | }, | 333 | }, |
@@ -337,21 +337,21 @@ static struct ctl_table kern_table[] = { | |||
337 | .data = &sysctl_sched_rt_period, | 337 | .data = &sysctl_sched_rt_period, |
338 | .maxlen = sizeof(unsigned int), | 338 | .maxlen = sizeof(unsigned int), |
339 | .mode = 0644, | 339 | .mode = 0644, |
340 | .proc_handler = &sched_rt_handler, | 340 | .proc_handler = sched_rt_handler, |
341 | }, | 341 | }, |
342 | { | 342 | { |
343 | .procname = "sched_rt_runtime_us", | 343 | .procname = "sched_rt_runtime_us", |
344 | .data = &sysctl_sched_rt_runtime, | 344 | .data = &sysctl_sched_rt_runtime, |
345 | .maxlen = sizeof(int), | 345 | .maxlen = sizeof(int), |
346 | .mode = 0644, | 346 | .mode = 0644, |
347 | .proc_handler = &sched_rt_handler, | 347 | .proc_handler = sched_rt_handler, |
348 | }, | 348 | }, |
349 | { | 349 | { |
350 | .procname = "sched_compat_yield", | 350 | .procname = "sched_compat_yield", |
351 | .data = &sysctl_sched_compat_yield, | 351 | .data = &sysctl_sched_compat_yield, |
352 | .maxlen = sizeof(unsigned int), | 352 | .maxlen = sizeof(unsigned int), |
353 | .mode = 0644, | 353 | .mode = 0644, |
354 | .proc_handler = &proc_dointvec, | 354 | .proc_handler = proc_dointvec, |
355 | }, | 355 | }, |
356 | #ifdef CONFIG_PROVE_LOCKING | 356 | #ifdef CONFIG_PROVE_LOCKING |
357 | { | 357 | { |
@@ -359,7 +359,7 @@ static struct ctl_table kern_table[] = { | |||
359 | .data = &prove_locking, | 359 | .data = &prove_locking, |
360 | .maxlen = sizeof(int), | 360 | .maxlen = sizeof(int), |
361 | .mode = 0644, | 361 | .mode = 0644, |
362 | .proc_handler = &proc_dointvec, | 362 | .proc_handler = proc_dointvec, |
363 | }, | 363 | }, |
364 | #endif | 364 | #endif |
365 | #ifdef CONFIG_LOCK_STAT | 365 | #ifdef CONFIG_LOCK_STAT |
@@ -368,7 +368,7 @@ static struct ctl_table kern_table[] = { | |||
368 | .data = &lock_stat, | 368 | .data = &lock_stat, |
369 | .maxlen = sizeof(int), | 369 | .maxlen = sizeof(int), |
370 | .mode = 0644, | 370 | .mode = 0644, |
371 | .proc_handler = &proc_dointvec, | 371 | .proc_handler = proc_dointvec, |
372 | }, | 372 | }, |
373 | #endif | 373 | #endif |
374 | { | 374 | { |
@@ -376,35 +376,35 @@ static struct ctl_table kern_table[] = { | |||
376 | .data = &panic_timeout, | 376 | .data = &panic_timeout, |
377 | .maxlen = sizeof(int), | 377 | .maxlen = sizeof(int), |
378 | .mode = 0644, | 378 | .mode = 0644, |
379 | .proc_handler = &proc_dointvec, | 379 | .proc_handler = proc_dointvec, |
380 | }, | 380 | }, |
381 | { | 381 | { |
382 | .procname = "core_uses_pid", | 382 | .procname = "core_uses_pid", |
383 | .data = &core_uses_pid, | 383 | .data = &core_uses_pid, |
384 | .maxlen = sizeof(int), | 384 | .maxlen = sizeof(int), |
385 | .mode = 0644, | 385 | .mode = 0644, |
386 | .proc_handler = &proc_dointvec, | 386 | .proc_handler = proc_dointvec, |
387 | }, | 387 | }, |
388 | { | 388 | { |
389 | .procname = "core_pattern", | 389 | .procname = "core_pattern", |
390 | .data = core_pattern, | 390 | .data = core_pattern, |
391 | .maxlen = CORENAME_MAX_SIZE, | 391 | .maxlen = CORENAME_MAX_SIZE, |
392 | .mode = 0644, | 392 | .mode = 0644, |
393 | .proc_handler = &proc_dostring, | 393 | .proc_handler = proc_dostring, |
394 | }, | 394 | }, |
395 | { | 395 | { |
396 | .procname = "core_pipe_limit", | 396 | .procname = "core_pipe_limit", |
397 | .data = &core_pipe_limit, | 397 | .data = &core_pipe_limit, |
398 | .maxlen = sizeof(unsigned int), | 398 | .maxlen = sizeof(unsigned int), |
399 | .mode = 0644, | 399 | .mode = 0644, |
400 | .proc_handler = &proc_dointvec, | 400 | .proc_handler = proc_dointvec, |
401 | }, | 401 | }, |
402 | #ifdef CONFIG_PROC_SYSCTL | 402 | #ifdef CONFIG_PROC_SYSCTL |
403 | { | 403 | { |
404 | .procname = "tainted", | 404 | .procname = "tainted", |
405 | .maxlen = sizeof(long), | 405 | .maxlen = sizeof(long), |
406 | .mode = 0644, | 406 | .mode = 0644, |
407 | .proc_handler = &proc_taint, | 407 | .proc_handler = proc_taint, |
408 | }, | 408 | }, |
409 | #endif | 409 | #endif |
410 | #ifdef CONFIG_LATENCYTOP | 410 | #ifdef CONFIG_LATENCYTOP |
@@ -413,7 +413,7 @@ static struct ctl_table kern_table[] = { | |||
413 | .data = &latencytop_enabled, | 413 | .data = &latencytop_enabled, |
414 | .maxlen = sizeof(int), | 414 | .maxlen = sizeof(int), |
415 | .mode = 0644, | 415 | .mode = 0644, |
416 | .proc_handler = &proc_dointvec, | 416 | .proc_handler = proc_dointvec, |
417 | }, | 417 | }, |
418 | #endif | 418 | #endif |
419 | #ifdef CONFIG_BLK_DEV_INITRD | 419 | #ifdef CONFIG_BLK_DEV_INITRD |
@@ -422,7 +422,7 @@ static struct ctl_table kern_table[] = { | |||
422 | .data = &real_root_dev, | 422 | .data = &real_root_dev, |
423 | .maxlen = sizeof(int), | 423 | .maxlen = sizeof(int), |
424 | .mode = 0644, | 424 | .mode = 0644, |
425 | .proc_handler = &proc_dointvec, | 425 | .proc_handler = proc_dointvec, |
426 | }, | 426 | }, |
427 | #endif | 427 | #endif |
428 | { | 428 | { |
@@ -430,7 +430,7 @@ static struct ctl_table kern_table[] = { | |||
430 | .data = &print_fatal_signals, | 430 | .data = &print_fatal_signals, |
431 | .maxlen = sizeof(int), | 431 | .maxlen = sizeof(int), |
432 | .mode = 0644, | 432 | .mode = 0644, |
433 | .proc_handler = &proc_dointvec, | 433 | .proc_handler = proc_dointvec, |
434 | }, | 434 | }, |
435 | #ifdef CONFIG_SPARC | 435 | #ifdef CONFIG_SPARC |
436 | { | 436 | { |
@@ -438,21 +438,21 @@ static struct ctl_table kern_table[] = { | |||
438 | .data = reboot_command, | 438 | .data = reboot_command, |
439 | .maxlen = 256, | 439 | .maxlen = 256, |
440 | .mode = 0644, | 440 | .mode = 0644, |
441 | .proc_handler = &proc_dostring, | 441 | .proc_handler = proc_dostring, |
442 | }, | 442 | }, |
443 | { | 443 | { |
444 | .procname = "stop-a", | 444 | .procname = "stop-a", |
445 | .data = &stop_a_enabled, | 445 | .data = &stop_a_enabled, |
446 | .maxlen = sizeof (int), | 446 | .maxlen = sizeof (int), |
447 | .mode = 0644, | 447 | .mode = 0644, |
448 | .proc_handler = &proc_dointvec, | 448 | .proc_handler = proc_dointvec, |
449 | }, | 449 | }, |
450 | { | 450 | { |
451 | .procname = "scons-poweroff", | 451 | .procname = "scons-poweroff", |
452 | .data = &scons_pwroff, | 452 | .data = &scons_pwroff, |
453 | .maxlen = sizeof (int), | 453 | .maxlen = sizeof (int), |
454 | .mode = 0644, | 454 | .mode = 0644, |
455 | .proc_handler = &proc_dointvec, | 455 | .proc_handler = proc_dointvec, |
456 | }, | 456 | }, |
457 | #endif | 457 | #endif |
458 | #ifdef CONFIG_SPARC64 | 458 | #ifdef CONFIG_SPARC64 |
@@ -461,7 +461,7 @@ static struct ctl_table kern_table[] = { | |||
461 | .data = &sysctl_tsb_ratio, | 461 | .data = &sysctl_tsb_ratio, |
462 | .maxlen = sizeof (int), | 462 | .maxlen = sizeof (int), |
463 | .mode = 0644, | 463 | .mode = 0644, |
464 | .proc_handler = &proc_dointvec, | 464 | .proc_handler = proc_dointvec, |
465 | }, | 465 | }, |
466 | #endif | 466 | #endif |
467 | #ifdef __hppa__ | 467 | #ifdef __hppa__ |
@@ -470,14 +470,14 @@ static struct ctl_table kern_table[] = { | |||
470 | .data = &pwrsw_enabled, | 470 | .data = &pwrsw_enabled, |
471 | .maxlen = sizeof (int), | 471 | .maxlen = sizeof (int), |
472 | .mode = 0644, | 472 | .mode = 0644, |
473 | .proc_handler = &proc_dointvec, | 473 | .proc_handler = proc_dointvec, |
474 | }, | 474 | }, |
475 | { | 475 | { |
476 | .procname = "unaligned-trap", | 476 | .procname = "unaligned-trap", |
477 | .data = &unaligned_enabled, | 477 | .data = &unaligned_enabled, |
478 | .maxlen = sizeof (int), | 478 | .maxlen = sizeof (int), |
479 | .mode = 0644, | 479 | .mode = 0644, |
480 | .proc_handler = &proc_dointvec, | 480 | .proc_handler = proc_dointvec, |
481 | }, | 481 | }, |
482 | #endif | 482 | #endif |
483 | { | 483 | { |
@@ -485,7 +485,7 @@ static struct ctl_table kern_table[] = { | |||
485 | .data = &C_A_D, | 485 | .data = &C_A_D, |
486 | .maxlen = sizeof(int), | 486 | .maxlen = sizeof(int), |
487 | .mode = 0644, | 487 | .mode = 0644, |
488 | .proc_handler = &proc_dointvec, | 488 | .proc_handler = proc_dointvec, |
489 | }, | 489 | }, |
490 | #ifdef CONFIG_FUNCTION_TRACER | 490 | #ifdef CONFIG_FUNCTION_TRACER |
491 | { | 491 | { |
@@ -493,7 +493,7 @@ static struct ctl_table kern_table[] = { | |||
493 | .data = &ftrace_enabled, | 493 | .data = &ftrace_enabled, |
494 | .maxlen = sizeof(int), | 494 | .maxlen = sizeof(int), |
495 | .mode = 0644, | 495 | .mode = 0644, |
496 | .proc_handler = &ftrace_enable_sysctl, | 496 | .proc_handler = ftrace_enable_sysctl, |
497 | }, | 497 | }, |
498 | #endif | 498 | #endif |
499 | #ifdef CONFIG_STACK_TRACER | 499 | #ifdef CONFIG_STACK_TRACER |
@@ -502,7 +502,7 @@ static struct ctl_table kern_table[] = { | |||
502 | .data = &stack_tracer_enabled, | 502 | .data = &stack_tracer_enabled, |
503 | .maxlen = sizeof(int), | 503 | .maxlen = sizeof(int), |
504 | .mode = 0644, | 504 | .mode = 0644, |
505 | .proc_handler = &stack_trace_sysctl, | 505 | .proc_handler = stack_trace_sysctl, |
506 | }, | 506 | }, |
507 | #endif | 507 | #endif |
508 | #ifdef CONFIG_TRACING | 508 | #ifdef CONFIG_TRACING |
@@ -511,7 +511,7 @@ static struct ctl_table kern_table[] = { | |||
511 | .data = &ftrace_dump_on_oops, | 511 | .data = &ftrace_dump_on_oops, |
512 | .maxlen = sizeof(int), | 512 | .maxlen = sizeof(int), |
513 | .mode = 0644, | 513 | .mode = 0644, |
514 | .proc_handler = &proc_dointvec, | 514 | .proc_handler = proc_dointvec, |
515 | }, | 515 | }, |
516 | #endif | 516 | #endif |
517 | #ifdef CONFIG_MODULES | 517 | #ifdef CONFIG_MODULES |
@@ -520,7 +520,7 @@ static struct ctl_table kern_table[] = { | |||
520 | .data = &modprobe_path, | 520 | .data = &modprobe_path, |
521 | .maxlen = KMOD_PATH_LEN, | 521 | .maxlen = KMOD_PATH_LEN, |
522 | .mode = 0644, | 522 | .mode = 0644, |
523 | .proc_handler = &proc_dostring, | 523 | .proc_handler = proc_dostring, |
524 | }, | 524 | }, |
525 | { | 525 | { |
526 | .procname = "modules_disabled", | 526 | .procname = "modules_disabled", |
@@ -528,7 +528,7 @@ static struct ctl_table kern_table[] = { | |||
528 | .maxlen = sizeof(int), | 528 | .maxlen = sizeof(int), |
529 | .mode = 0644, | 529 | .mode = 0644, |
530 | /* only handle a transition from default "0" to "1" */ | 530 | /* only handle a transition from default "0" to "1" */ |
531 | .proc_handler = &proc_dointvec_minmax, | 531 | .proc_handler = proc_dointvec_minmax, |
532 | .extra1 = &one, | 532 | .extra1 = &one, |
533 | .extra2 = &one, | 533 | .extra2 = &one, |
534 | }, | 534 | }, |
@@ -539,7 +539,7 @@ static struct ctl_table kern_table[] = { | |||
539 | .data = &uevent_helper, | 539 | .data = &uevent_helper, |
540 | .maxlen = UEVENT_HELPER_PATH_LEN, | 540 | .maxlen = UEVENT_HELPER_PATH_LEN, |
541 | .mode = 0644, | 541 | .mode = 0644, |
542 | .proc_handler = &proc_dostring, | 542 | .proc_handler = proc_dostring, |
543 | }, | 543 | }, |
544 | #endif | 544 | #endif |
545 | #ifdef CONFIG_CHR_DEV_SG | 545 | #ifdef CONFIG_CHR_DEV_SG |
@@ -548,7 +548,7 @@ static struct ctl_table kern_table[] = { | |||
548 | .data = &sg_big_buff, | 548 | .data = &sg_big_buff, |
549 | .maxlen = sizeof (int), | 549 | .maxlen = sizeof (int), |
550 | .mode = 0444, | 550 | .mode = 0444, |
551 | .proc_handler = &proc_dointvec, | 551 | .proc_handler = proc_dointvec, |
552 | }, | 552 | }, |
553 | #endif | 553 | #endif |
554 | #ifdef CONFIG_BSD_PROCESS_ACCT | 554 | #ifdef CONFIG_BSD_PROCESS_ACCT |
@@ -557,7 +557,7 @@ static struct ctl_table kern_table[] = { | |||
557 | .data = &acct_parm, | 557 | .data = &acct_parm, |
558 | .maxlen = 3*sizeof(int), | 558 | .maxlen = 3*sizeof(int), |
559 | .mode = 0644, | 559 | .mode = 0644, |
560 | .proc_handler = &proc_dointvec, | 560 | .proc_handler = proc_dointvec, |
561 | }, | 561 | }, |
562 | #endif | 562 | #endif |
563 | #ifdef CONFIG_MAGIC_SYSRQ | 563 | #ifdef CONFIG_MAGIC_SYSRQ |
@@ -566,7 +566,7 @@ static struct ctl_table kern_table[] = { | |||
566 | .data = &__sysrq_enabled, | 566 | .data = &__sysrq_enabled, |
567 | .maxlen = sizeof (int), | 567 | .maxlen = sizeof (int), |
568 | .mode = 0644, | 568 | .mode = 0644, |
569 | .proc_handler = &proc_dointvec, | 569 | .proc_handler = proc_dointvec, |
570 | }, | 570 | }, |
571 | #endif | 571 | #endif |
572 | #ifdef CONFIG_PROC_SYSCTL | 572 | #ifdef CONFIG_PROC_SYSCTL |
@@ -575,7 +575,7 @@ static struct ctl_table kern_table[] = { | |||
575 | .data = NULL, | 575 | .data = NULL, |
576 | .maxlen = sizeof (int), | 576 | .maxlen = sizeof (int), |
577 | .mode = 0600, | 577 | .mode = 0600, |
578 | .proc_handler = &proc_do_cad_pid, | 578 | .proc_handler = proc_do_cad_pid, |
579 | }, | 579 | }, |
580 | #endif | 580 | #endif |
581 | { | 581 | { |
@@ -583,7 +583,7 @@ static struct ctl_table kern_table[] = { | |||
583 | .data = &max_threads, | 583 | .data = &max_threads, |
584 | .maxlen = sizeof(int), | 584 | .maxlen = sizeof(int), |
585 | .mode = 0644, | 585 | .mode = 0644, |
586 | .proc_handler = &proc_dointvec, | 586 | .proc_handler = proc_dointvec, |
587 | }, | 587 | }, |
588 | { | 588 | { |
589 | .procname = "random", | 589 | .procname = "random", |
@@ -595,7 +595,7 @@ static struct ctl_table kern_table[] = { | |||
595 | .data = &overflowuid, | 595 | .data = &overflowuid, |
596 | .maxlen = sizeof(int), | 596 | .maxlen = sizeof(int), |
597 | .mode = 0644, | 597 | .mode = 0644, |
598 | .proc_handler = &proc_dointvec_minmax, | 598 | .proc_handler = proc_dointvec_minmax, |
599 | .extra1 = &minolduid, | 599 | .extra1 = &minolduid, |
600 | .extra2 = &maxolduid, | 600 | .extra2 = &maxolduid, |
601 | }, | 601 | }, |
@@ -604,7 +604,7 @@ static struct ctl_table kern_table[] = { | |||
604 | .data = &overflowgid, | 604 | .data = &overflowgid, |
605 | .maxlen = sizeof(int), | 605 | .maxlen = sizeof(int), |
606 | .mode = 0644, | 606 | .mode = 0644, |
607 | .proc_handler = &proc_dointvec_minmax, | 607 | .proc_handler = proc_dointvec_minmax, |
608 | .extra1 = &minolduid, | 608 | .extra1 = &minolduid, |
609 | .extra2 = &maxolduid, | 609 | .extra2 = &maxolduid, |
610 | }, | 610 | }, |
@@ -615,7 +615,7 @@ static struct ctl_table kern_table[] = { | |||
615 | .data = &sysctl_ieee_emulation_warnings, | 615 | .data = &sysctl_ieee_emulation_warnings, |
616 | .maxlen = sizeof(int), | 616 | .maxlen = sizeof(int), |
617 | .mode = 0644, | 617 | .mode = 0644, |
618 | .proc_handler = &proc_dointvec, | 618 | .proc_handler = proc_dointvec, |
619 | }, | 619 | }, |
620 | #endif | 620 | #endif |
621 | { | 621 | { |
@@ -623,7 +623,7 @@ static struct ctl_table kern_table[] = { | |||
623 | .data = &sysctl_userprocess_debug, | 623 | .data = &sysctl_userprocess_debug, |
624 | .maxlen = sizeof(int), | 624 | .maxlen = sizeof(int), |
625 | .mode = 0644, | 625 | .mode = 0644, |
626 | .proc_handler = &proc_dointvec, | 626 | .proc_handler = proc_dointvec, |
627 | }, | 627 | }, |
628 | #endif | 628 | #endif |
629 | { | 629 | { |
@@ -631,7 +631,7 @@ static struct ctl_table kern_table[] = { | |||
631 | .data = &pid_max, | 631 | .data = &pid_max, |
632 | .maxlen = sizeof (int), | 632 | .maxlen = sizeof (int), |
633 | .mode = 0644, | 633 | .mode = 0644, |
634 | .proc_handler = &proc_dointvec_minmax, | 634 | .proc_handler = proc_dointvec_minmax, |
635 | .extra1 = &pid_max_min, | 635 | .extra1 = &pid_max_min, |
636 | .extra2 = &pid_max_max, | 636 | .extra2 = &pid_max_max, |
637 | }, | 637 | }, |
@@ -640,7 +640,7 @@ static struct ctl_table kern_table[] = { | |||
640 | .data = &panic_on_oops, | 640 | .data = &panic_on_oops, |
641 | .maxlen = sizeof(int), | 641 | .maxlen = sizeof(int), |
642 | .mode = 0644, | 642 | .mode = 0644, |
643 | .proc_handler = &proc_dointvec, | 643 | .proc_handler = proc_dointvec, |
644 | }, | 644 | }, |
645 | #if defined CONFIG_PRINTK | 645 | #if defined CONFIG_PRINTK |
646 | { | 646 | { |
@@ -648,28 +648,28 @@ static struct ctl_table kern_table[] = { | |||
648 | .data = &console_loglevel, | 648 | .data = &console_loglevel, |
649 | .maxlen = 4*sizeof(int), | 649 | .maxlen = 4*sizeof(int), |
650 | .mode = 0644, | 650 | .mode = 0644, |
651 | .proc_handler = &proc_dointvec, | 651 | .proc_handler = proc_dointvec, |
652 | }, | 652 | }, |
653 | { | 653 | { |
654 | .procname = "printk_ratelimit", | 654 | .procname = "printk_ratelimit", |
655 | .data = &printk_ratelimit_state.interval, | 655 | .data = &printk_ratelimit_state.interval, |
656 | .maxlen = sizeof(int), | 656 | .maxlen = sizeof(int), |
657 | .mode = 0644, | 657 | .mode = 0644, |
658 | .proc_handler = &proc_dointvec_jiffies, | 658 | .proc_handler = proc_dointvec_jiffies, |
659 | }, | 659 | }, |
660 | { | 660 | { |
661 | .procname = "printk_ratelimit_burst", | 661 | .procname = "printk_ratelimit_burst", |
662 | .data = &printk_ratelimit_state.burst, | 662 | .data = &printk_ratelimit_state.burst, |
663 | .maxlen = sizeof(int), | 663 | .maxlen = sizeof(int), |
664 | .mode = 0644, | 664 | .mode = 0644, |
665 | .proc_handler = &proc_dointvec, | 665 | .proc_handler = proc_dointvec, |
666 | }, | 666 | }, |
667 | { | 667 | { |
668 | .procname = "printk_delay", | 668 | .procname = "printk_delay", |
669 | .data = &printk_delay_msec, | 669 | .data = &printk_delay_msec, |
670 | .maxlen = sizeof(int), | 670 | .maxlen = sizeof(int), |
671 | .mode = 0644, | 671 | .mode = 0644, |
672 | .proc_handler = &proc_dointvec_minmax, | 672 | .proc_handler = proc_dointvec_minmax, |
673 | .extra1 = &zero, | 673 | .extra1 = &zero, |
674 | .extra2 = &ten_thousand, | 674 | .extra2 = &ten_thousand, |
675 | }, | 675 | }, |
@@ -679,7 +679,7 @@ static struct ctl_table kern_table[] = { | |||
679 | .data = &ngroups_max, | 679 | .data = &ngroups_max, |
680 | .maxlen = sizeof (int), | 680 | .maxlen = sizeof (int), |
681 | .mode = 0444, | 681 | .mode = 0444, |
682 | .proc_handler = &proc_dointvec, | 682 | .proc_handler = proc_dointvec, |
683 | }, | 683 | }, |
684 | #if defined(CONFIG_X86_LOCAL_APIC) && defined(CONFIG_X86) | 684 | #if defined(CONFIG_X86_LOCAL_APIC) && defined(CONFIG_X86) |
685 | { | 685 | { |
@@ -687,14 +687,14 @@ static struct ctl_table kern_table[] = { | |||
687 | .data = &unknown_nmi_panic, | 687 | .data = &unknown_nmi_panic, |
688 | .maxlen = sizeof (int), | 688 | .maxlen = sizeof (int), |
689 | .mode = 0644, | 689 | .mode = 0644, |
690 | .proc_handler = &proc_dointvec, | 690 | .proc_handler = proc_dointvec, |
691 | }, | 691 | }, |
692 | { | 692 | { |
693 | .procname = "nmi_watchdog", | 693 | .procname = "nmi_watchdog", |
694 | .data = &nmi_watchdog_enabled, | 694 | .data = &nmi_watchdog_enabled, |
695 | .maxlen = sizeof (int), | 695 | .maxlen = sizeof (int), |
696 | .mode = 0644, | 696 | .mode = 0644, |
697 | .proc_handler = &proc_nmi_enabled, | 697 | .proc_handler = proc_nmi_enabled, |
698 | }, | 698 | }, |
699 | #endif | 699 | #endif |
700 | #if defined(CONFIG_X86) | 700 | #if defined(CONFIG_X86) |
@@ -703,42 +703,42 @@ static struct ctl_table kern_table[] = { | |||
703 | .data = &panic_on_unrecovered_nmi, | 703 | .data = &panic_on_unrecovered_nmi, |
704 | .maxlen = sizeof(int), | 704 | .maxlen = sizeof(int), |
705 | .mode = 0644, | 705 | .mode = 0644, |
706 | .proc_handler = &proc_dointvec, | 706 | .proc_handler = proc_dointvec, |
707 | }, | 707 | }, |
708 | { | 708 | { |
709 | .procname = "panic_on_io_nmi", | 709 | .procname = "panic_on_io_nmi", |
710 | .data = &panic_on_io_nmi, | 710 | .data = &panic_on_io_nmi, |
711 | .maxlen = sizeof(int), | 711 | .maxlen = sizeof(int), |
712 | .mode = 0644, | 712 | .mode = 0644, |
713 | .proc_handler = &proc_dointvec, | 713 | .proc_handler = proc_dointvec, |
714 | }, | 714 | }, |
715 | { | 715 | { |
716 | .procname = "bootloader_type", | 716 | .procname = "bootloader_type", |
717 | .data = &bootloader_type, | 717 | .data = &bootloader_type, |
718 | .maxlen = sizeof (int), | 718 | .maxlen = sizeof (int), |
719 | .mode = 0444, | 719 | .mode = 0444, |
720 | .proc_handler = &proc_dointvec, | 720 | .proc_handler = proc_dointvec, |
721 | }, | 721 | }, |
722 | { | 722 | { |
723 | .procname = "bootloader_version", | 723 | .procname = "bootloader_version", |
724 | .data = &bootloader_version, | 724 | .data = &bootloader_version, |
725 | .maxlen = sizeof (int), | 725 | .maxlen = sizeof (int), |
726 | .mode = 0444, | 726 | .mode = 0444, |
727 | .proc_handler = &proc_dointvec, | 727 | .proc_handler = proc_dointvec, |
728 | }, | 728 | }, |
729 | { | 729 | { |
730 | .procname = "kstack_depth_to_print", | 730 | .procname = "kstack_depth_to_print", |
731 | .data = &kstack_depth_to_print, | 731 | .data = &kstack_depth_to_print, |
732 | .maxlen = sizeof(int), | 732 | .maxlen = sizeof(int), |
733 | .mode = 0644, | 733 | .mode = 0644, |
734 | .proc_handler = &proc_dointvec, | 734 | .proc_handler = proc_dointvec, |
735 | }, | 735 | }, |
736 | { | 736 | { |
737 | .procname = "io_delay_type", | 737 | .procname = "io_delay_type", |
738 | .data = &io_delay_type, | 738 | .data = &io_delay_type, |
739 | .maxlen = sizeof(int), | 739 | .maxlen = sizeof(int), |
740 | .mode = 0644, | 740 | .mode = 0644, |
741 | .proc_handler = &proc_dointvec, | 741 | .proc_handler = proc_dointvec, |
742 | }, | 742 | }, |
743 | #endif | 743 | #endif |
744 | #if defined(CONFIG_MMU) | 744 | #if defined(CONFIG_MMU) |
@@ -747,7 +747,7 @@ static struct ctl_table kern_table[] = { | |||
747 | .data = &randomize_va_space, | 747 | .data = &randomize_va_space, |
748 | .maxlen = sizeof(int), | 748 | .maxlen = sizeof(int), |
749 | .mode = 0644, | 749 | .mode = 0644, |
750 | .proc_handler = &proc_dointvec, | 750 | .proc_handler = proc_dointvec, |
751 | }, | 751 | }, |
752 | #endif | 752 | #endif |
753 | #if defined(CONFIG_S390) && defined(CONFIG_SMP) | 753 | #if defined(CONFIG_S390) && defined(CONFIG_SMP) |
@@ -756,7 +756,7 @@ static struct ctl_table kern_table[] = { | |||
756 | .data = &spin_retry, | 756 | .data = &spin_retry, |
757 | .maxlen = sizeof (int), | 757 | .maxlen = sizeof (int), |
758 | .mode = 0644, | 758 | .mode = 0644, |
759 | .proc_handler = &proc_dointvec, | 759 | .proc_handler = proc_dointvec, |
760 | }, | 760 | }, |
761 | #endif | 761 | #endif |
762 | #if defined(CONFIG_ACPI_SLEEP) && defined(CONFIG_X86) | 762 | #if defined(CONFIG_ACPI_SLEEP) && defined(CONFIG_X86) |
@@ -765,7 +765,7 @@ static struct ctl_table kern_table[] = { | |||
765 | .data = &acpi_realmode_flags, | 765 | .data = &acpi_realmode_flags, |
766 | .maxlen = sizeof (unsigned long), | 766 | .maxlen = sizeof (unsigned long), |
767 | .mode = 0644, | 767 | .mode = 0644, |
768 | .proc_handler = &proc_doulongvec_minmax, | 768 | .proc_handler = proc_doulongvec_minmax, |
769 | }, | 769 | }, |
770 | #endif | 770 | #endif |
771 | #ifdef CONFIG_IA64 | 771 | #ifdef CONFIG_IA64 |
@@ -774,14 +774,14 @@ static struct ctl_table kern_table[] = { | |||
774 | .data = &no_unaligned_warning, | 774 | .data = &no_unaligned_warning, |
775 | .maxlen = sizeof (int), | 775 | .maxlen = sizeof (int), |
776 | .mode = 0644, | 776 | .mode = 0644, |
777 | .proc_handler = &proc_dointvec, | 777 | .proc_handler = proc_dointvec, |
778 | }, | 778 | }, |
779 | { | 779 | { |
780 | .procname = "unaligned-dump-stack", | 780 | .procname = "unaligned-dump-stack", |
781 | .data = &unaligned_dump_stack, | 781 | .data = &unaligned_dump_stack, |
782 | .maxlen = sizeof (int), | 782 | .maxlen = sizeof (int), |
783 | .mode = 0644, | 783 | .mode = 0644, |
784 | .proc_handler = &proc_dointvec, | 784 | .proc_handler = proc_dointvec, |
785 | }, | 785 | }, |
786 | #endif | 786 | #endif |
787 | #ifdef CONFIG_DETECT_SOFTLOCKUP | 787 | #ifdef CONFIG_DETECT_SOFTLOCKUP |
@@ -790,7 +790,7 @@ static struct ctl_table kern_table[] = { | |||
790 | .data = &softlockup_panic, | 790 | .data = &softlockup_panic, |
791 | .maxlen = sizeof(int), | 791 | .maxlen = sizeof(int), |
792 | .mode = 0644, | 792 | .mode = 0644, |
793 | .proc_handler = &proc_dointvec_minmax, | 793 | .proc_handler = proc_dointvec_minmax, |
794 | .extra1 = &zero, | 794 | .extra1 = &zero, |
795 | .extra2 = &one, | 795 | .extra2 = &one, |
796 | }, | 796 | }, |
@@ -799,7 +799,7 @@ static struct ctl_table kern_table[] = { | |||
799 | .data = &softlockup_thresh, | 799 | .data = &softlockup_thresh, |
800 | .maxlen = sizeof(int), | 800 | .maxlen = sizeof(int), |
801 | .mode = 0644, | 801 | .mode = 0644, |
802 | .proc_handler = &proc_dosoftlockup_thresh, | 802 | .proc_handler = proc_dosoftlockup_thresh, |
803 | .extra1 = &neg_one, | 803 | .extra1 = &neg_one, |
804 | .extra2 = &sixty, | 804 | .extra2 = &sixty, |
805 | }, | 805 | }, |
@@ -810,7 +810,7 @@ static struct ctl_table kern_table[] = { | |||
810 | .data = &sysctl_hung_task_panic, | 810 | .data = &sysctl_hung_task_panic, |
811 | .maxlen = sizeof(int), | 811 | .maxlen = sizeof(int), |
812 | .mode = 0644, | 812 | .mode = 0644, |
813 | .proc_handler = &proc_dointvec_minmax, | 813 | .proc_handler = proc_dointvec_minmax, |
814 | .extra1 = &zero, | 814 | .extra1 = &zero, |
815 | .extra2 = &one, | 815 | .extra2 = &one, |
816 | }, | 816 | }, |
@@ -819,21 +819,21 @@ static struct ctl_table kern_table[] = { | |||
819 | .data = &sysctl_hung_task_check_count, | 819 | .data = &sysctl_hung_task_check_count, |
820 | .maxlen = sizeof(unsigned long), | 820 | .maxlen = sizeof(unsigned long), |
821 | .mode = 0644, | 821 | .mode = 0644, |
822 | .proc_handler = &proc_doulongvec_minmax, | 822 | .proc_handler = proc_doulongvec_minmax, |
823 | }, | 823 | }, |
824 | { | 824 | { |
825 | .procname = "hung_task_timeout_secs", | 825 | .procname = "hung_task_timeout_secs", |
826 | .data = &sysctl_hung_task_timeout_secs, | 826 | .data = &sysctl_hung_task_timeout_secs, |
827 | .maxlen = sizeof(unsigned long), | 827 | .maxlen = sizeof(unsigned long), |
828 | .mode = 0644, | 828 | .mode = 0644, |
829 | .proc_handler = &proc_dohung_task_timeout_secs, | 829 | .proc_handler = proc_dohung_task_timeout_secs, |
830 | }, | 830 | }, |
831 | { | 831 | { |
832 | .procname = "hung_task_warnings", | 832 | .procname = "hung_task_warnings", |
833 | .data = &sysctl_hung_task_warnings, | 833 | .data = &sysctl_hung_task_warnings, |
834 | .maxlen = sizeof(unsigned long), | 834 | .maxlen = sizeof(unsigned long), |
835 | .mode = 0644, | 835 | .mode = 0644, |
836 | .proc_handler = &proc_doulongvec_minmax, | 836 | .proc_handler = proc_doulongvec_minmax, |
837 | }, | 837 | }, |
838 | #endif | 838 | #endif |
839 | #ifdef CONFIG_COMPAT | 839 | #ifdef CONFIG_COMPAT |
@@ -842,7 +842,7 @@ static struct ctl_table kern_table[] = { | |||
842 | .data = &compat_log, | 842 | .data = &compat_log, |
843 | .maxlen = sizeof (int), | 843 | .maxlen = sizeof (int), |
844 | .mode = 0644, | 844 | .mode = 0644, |
845 | .proc_handler = &proc_dointvec, | 845 | .proc_handler = proc_dointvec, |
846 | }, | 846 | }, |
847 | #endif | 847 | #endif |
848 | #ifdef CONFIG_RT_MUTEXES | 848 | #ifdef CONFIG_RT_MUTEXES |
@@ -851,7 +851,7 @@ static struct ctl_table kern_table[] = { | |||
851 | .data = &max_lock_depth, | 851 | .data = &max_lock_depth, |
852 | .maxlen = sizeof(int), | 852 | .maxlen = sizeof(int), |
853 | .mode = 0644, | 853 | .mode = 0644, |
854 | .proc_handler = &proc_dointvec, | 854 | .proc_handler = proc_dointvec, |
855 | }, | 855 | }, |
856 | #endif | 856 | #endif |
857 | { | 857 | { |
@@ -859,7 +859,7 @@ static struct ctl_table kern_table[] = { | |||
859 | .data = &poweroff_cmd, | 859 | .data = &poweroff_cmd, |
860 | .maxlen = POWEROFF_CMD_PATH_LEN, | 860 | .maxlen = POWEROFF_CMD_PATH_LEN, |
861 | .mode = 0644, | 861 | .mode = 0644, |
862 | .proc_handler = &proc_dostring, | 862 | .proc_handler = proc_dostring, |
863 | }, | 863 | }, |
864 | #ifdef CONFIG_KEYS | 864 | #ifdef CONFIG_KEYS |
865 | { | 865 | { |
@@ -874,7 +874,7 @@ static struct ctl_table kern_table[] = { | |||
874 | .data = &rcutorture_runnable, | 874 | .data = &rcutorture_runnable, |
875 | .maxlen = sizeof(int), | 875 | .maxlen = sizeof(int), |
876 | .mode = 0644, | 876 | .mode = 0644, |
877 | .proc_handler = &proc_dointvec, | 877 | .proc_handler = proc_dointvec, |
878 | }, | 878 | }, |
879 | #endif | 879 | #endif |
880 | #ifdef CONFIG_SLOW_WORK | 880 | #ifdef CONFIG_SLOW_WORK |
@@ -890,21 +890,21 @@ static struct ctl_table kern_table[] = { | |||
890 | .data = &sysctl_perf_event_paranoid, | 890 | .data = &sysctl_perf_event_paranoid, |
891 | .maxlen = sizeof(sysctl_perf_event_paranoid), | 891 | .maxlen = sizeof(sysctl_perf_event_paranoid), |
892 | .mode = 0644, | 892 | .mode = 0644, |
893 | .proc_handler = &proc_dointvec, | 893 | .proc_handler = proc_dointvec, |
894 | }, | 894 | }, |
895 | { | 895 | { |
896 | .procname = "perf_event_mlock_kb", | 896 | .procname = "perf_event_mlock_kb", |
897 | .data = &sysctl_perf_event_mlock, | 897 | .data = &sysctl_perf_event_mlock, |
898 | .maxlen = sizeof(sysctl_perf_event_mlock), | 898 | .maxlen = sizeof(sysctl_perf_event_mlock), |
899 | .mode = 0644, | 899 | .mode = 0644, |
900 | .proc_handler = &proc_dointvec, | 900 | .proc_handler = proc_dointvec, |
901 | }, | 901 | }, |
902 | { | 902 | { |
903 | .procname = "perf_event_max_sample_rate", | 903 | .procname = "perf_event_max_sample_rate", |
904 | .data = &sysctl_perf_event_sample_rate, | 904 | .data = &sysctl_perf_event_sample_rate, |
905 | .maxlen = sizeof(sysctl_perf_event_sample_rate), | 905 | .maxlen = sizeof(sysctl_perf_event_sample_rate), |
906 | .mode = 0644, | 906 | .mode = 0644, |
907 | .proc_handler = &proc_dointvec, | 907 | .proc_handler = proc_dointvec, |
908 | }, | 908 | }, |
909 | #endif | 909 | #endif |
910 | #ifdef CONFIG_KMEMCHECK | 910 | #ifdef CONFIG_KMEMCHECK |
@@ -913,7 +913,7 @@ static struct ctl_table kern_table[] = { | |||
913 | .data = &kmemcheck_enabled, | 913 | .data = &kmemcheck_enabled, |
914 | .maxlen = sizeof(int), | 914 | .maxlen = sizeof(int), |
915 | .mode = 0644, | 915 | .mode = 0644, |
916 | .proc_handler = &proc_dointvec, | 916 | .proc_handler = proc_dointvec, |
917 | }, | 917 | }, |
918 | #endif | 918 | #endif |
919 | #ifdef CONFIG_BLOCK | 919 | #ifdef CONFIG_BLOCK |
@@ -922,7 +922,7 @@ static struct ctl_table kern_table[] = { | |||
922 | .data = &blk_iopoll_enabled, | 922 | .data = &blk_iopoll_enabled, |
923 | .maxlen = sizeof(int), | 923 | .maxlen = sizeof(int), |
924 | .mode = 0644, | 924 | .mode = 0644, |
925 | .proc_handler = &proc_dointvec, | 925 | .proc_handler = proc_dointvec, |
926 | }, | 926 | }, |
927 | #endif | 927 | #endif |
928 | /* | 928 | /* |
@@ -938,49 +938,49 @@ static struct ctl_table vm_table[] = { | |||
938 | .data = &sysctl_overcommit_memory, | 938 | .data = &sysctl_overcommit_memory, |
939 | .maxlen = sizeof(sysctl_overcommit_memory), | 939 | .maxlen = sizeof(sysctl_overcommit_memory), |
940 | .mode = 0644, | 940 | .mode = 0644, |
941 | .proc_handler = &proc_dointvec, | 941 | .proc_handler = proc_dointvec, |
942 | }, | 942 | }, |
943 | { | 943 | { |
944 | .procname = "panic_on_oom", | 944 | .procname = "panic_on_oom", |
945 | .data = &sysctl_panic_on_oom, | 945 | .data = &sysctl_panic_on_oom, |
946 | .maxlen = sizeof(sysctl_panic_on_oom), | 946 | .maxlen = sizeof(sysctl_panic_on_oom), |
947 | .mode = 0644, | 947 | .mode = 0644, |
948 | .proc_handler = &proc_dointvec, | 948 | .proc_handler = proc_dointvec, |
949 | }, | 949 | }, |
950 | { | 950 | { |
951 | .procname = "oom_kill_allocating_task", | 951 | .procname = "oom_kill_allocating_task", |
952 | .data = &sysctl_oom_kill_allocating_task, | 952 | .data = &sysctl_oom_kill_allocating_task, |
953 | .maxlen = sizeof(sysctl_oom_kill_allocating_task), | 953 | .maxlen = sizeof(sysctl_oom_kill_allocating_task), |
954 | .mode = 0644, | 954 | .mode = 0644, |
955 | .proc_handler = &proc_dointvec, | 955 | .proc_handler = proc_dointvec, |
956 | }, | 956 | }, |
957 | { | 957 | { |
958 | .procname = "oom_dump_tasks", | 958 | .procname = "oom_dump_tasks", |
959 | .data = &sysctl_oom_dump_tasks, | 959 | .data = &sysctl_oom_dump_tasks, |
960 | .maxlen = sizeof(sysctl_oom_dump_tasks), | 960 | .maxlen = sizeof(sysctl_oom_dump_tasks), |
961 | .mode = 0644, | 961 | .mode = 0644, |
962 | .proc_handler = &proc_dointvec, | 962 | .proc_handler = proc_dointvec, |
963 | }, | 963 | }, |
964 | { | 964 | { |
965 | .procname = "overcommit_ratio", | 965 | .procname = "overcommit_ratio", |
966 | .data = &sysctl_overcommit_ratio, | 966 | .data = &sysctl_overcommit_ratio, |
967 | .maxlen = sizeof(sysctl_overcommit_ratio), | 967 | .maxlen = sizeof(sysctl_overcommit_ratio), |
968 | .mode = 0644, | 968 | .mode = 0644, |
969 | .proc_handler = &proc_dointvec, | 969 | .proc_handler = proc_dointvec, |
970 | }, | 970 | }, |
971 | { | 971 | { |
972 | .procname = "page-cluster", | 972 | .procname = "page-cluster", |
973 | .data = &page_cluster, | 973 | .data = &page_cluster, |
974 | .maxlen = sizeof(int), | 974 | .maxlen = sizeof(int), |
975 | .mode = 0644, | 975 | .mode = 0644, |
976 | .proc_handler = &proc_dointvec, | 976 | .proc_handler = proc_dointvec, |
977 | }, | 977 | }, |
978 | { | 978 | { |
979 | .procname = "dirty_background_ratio", | 979 | .procname = "dirty_background_ratio", |
980 | .data = &dirty_background_ratio, | 980 | .data = &dirty_background_ratio, |
981 | .maxlen = sizeof(dirty_background_ratio), | 981 | .maxlen = sizeof(dirty_background_ratio), |
982 | .mode = 0644, | 982 | .mode = 0644, |
983 | .proc_handler = &dirty_background_ratio_handler, | 983 | .proc_handler = dirty_background_ratio_handler, |
984 | .extra1 = &zero, | 984 | .extra1 = &zero, |
985 | .extra2 = &one_hundred, | 985 | .extra2 = &one_hundred, |
986 | }, | 986 | }, |
@@ -989,7 +989,7 @@ static struct ctl_table vm_table[] = { | |||
989 | .data = &dirty_background_bytes, | 989 | .data = &dirty_background_bytes, |
990 | .maxlen = sizeof(dirty_background_bytes), | 990 | .maxlen = sizeof(dirty_background_bytes), |
991 | .mode = 0644, | 991 | .mode = 0644, |
992 | .proc_handler = &dirty_background_bytes_handler, | 992 | .proc_handler = dirty_background_bytes_handler, |
993 | .extra1 = &one_ul, | 993 | .extra1 = &one_ul, |
994 | }, | 994 | }, |
995 | { | 995 | { |
@@ -997,7 +997,7 @@ static struct ctl_table vm_table[] = { | |||
997 | .data = &vm_dirty_ratio, | 997 | .data = &vm_dirty_ratio, |
998 | .maxlen = sizeof(vm_dirty_ratio), | 998 | .maxlen = sizeof(vm_dirty_ratio), |
999 | .mode = 0644, | 999 | .mode = 0644, |
1000 | .proc_handler = &dirty_ratio_handler, | 1000 | .proc_handler = dirty_ratio_handler, |
1001 | .extra1 = &zero, | 1001 | .extra1 = &zero, |
1002 | .extra2 = &one_hundred, | 1002 | .extra2 = &one_hundred, |
1003 | }, | 1003 | }, |
@@ -1006,7 +1006,7 @@ static struct ctl_table vm_table[] = { | |||
1006 | .data = &vm_dirty_bytes, | 1006 | .data = &vm_dirty_bytes, |
1007 | .maxlen = sizeof(vm_dirty_bytes), | 1007 | .maxlen = sizeof(vm_dirty_bytes), |
1008 | .mode = 0644, | 1008 | .mode = 0644, |
1009 | .proc_handler = &dirty_bytes_handler, | 1009 | .proc_handler = dirty_bytes_handler, |
1010 | .extra1 = &dirty_bytes_min, | 1010 | .extra1 = &dirty_bytes_min, |
1011 | }, | 1011 | }, |
1012 | { | 1012 | { |
@@ -1014,28 +1014,28 @@ static struct ctl_table vm_table[] = { | |||
1014 | .data = &dirty_writeback_interval, | 1014 | .data = &dirty_writeback_interval, |
1015 | .maxlen = sizeof(dirty_writeback_interval), | 1015 | .maxlen = sizeof(dirty_writeback_interval), |
1016 | .mode = 0644, | 1016 | .mode = 0644, |
1017 | .proc_handler = &dirty_writeback_centisecs_handler, | 1017 | .proc_handler = dirty_writeback_centisecs_handler, |
1018 | }, | 1018 | }, |
1019 | { | 1019 | { |
1020 | .procname = "dirty_expire_centisecs", | 1020 | .procname = "dirty_expire_centisecs", |
1021 | .data = &dirty_expire_interval, | 1021 | .data = &dirty_expire_interval, |
1022 | .maxlen = sizeof(dirty_expire_interval), | 1022 | .maxlen = sizeof(dirty_expire_interval), |
1023 | .mode = 0644, | 1023 | .mode = 0644, |
1024 | .proc_handler = &proc_dointvec, | 1024 | .proc_handler = proc_dointvec, |
1025 | }, | 1025 | }, |
1026 | { | 1026 | { |
1027 | .procname = "nr_pdflush_threads", | 1027 | .procname = "nr_pdflush_threads", |
1028 | .data = &nr_pdflush_threads, | 1028 | .data = &nr_pdflush_threads, |
1029 | .maxlen = sizeof nr_pdflush_threads, | 1029 | .maxlen = sizeof nr_pdflush_threads, |
1030 | .mode = 0444 /* read-only*/, | 1030 | .mode = 0444 /* read-only*/, |
1031 | .proc_handler = &proc_dointvec, | 1031 | .proc_handler = proc_dointvec, |
1032 | }, | 1032 | }, |
1033 | { | 1033 | { |
1034 | .procname = "swappiness", | 1034 | .procname = "swappiness", |
1035 | .data = &vm_swappiness, | 1035 | .data = &vm_swappiness, |
1036 | .maxlen = sizeof(vm_swappiness), | 1036 | .maxlen = sizeof(vm_swappiness), |
1037 | .mode = 0644, | 1037 | .mode = 0644, |
1038 | .proc_handler = &proc_dointvec_minmax, | 1038 | .proc_handler = proc_dointvec_minmax, |
1039 | .extra1 = &zero, | 1039 | .extra1 = &zero, |
1040 | .extra2 = &one_hundred, | 1040 | .extra2 = &one_hundred, |
1041 | }, | 1041 | }, |
@@ -1045,7 +1045,7 @@ static struct ctl_table vm_table[] = { | |||
1045 | .data = NULL, | 1045 | .data = NULL, |
1046 | .maxlen = sizeof(unsigned long), | 1046 | .maxlen = sizeof(unsigned long), |
1047 | .mode = 0644, | 1047 | .mode = 0644, |
1048 | .proc_handler = &hugetlb_sysctl_handler, | 1048 | .proc_handler = hugetlb_sysctl_handler, |
1049 | .extra1 = (void *)&hugetlb_zero, | 1049 | .extra1 = (void *)&hugetlb_zero, |
1050 | .extra2 = (void *)&hugetlb_infinity, | 1050 | .extra2 = (void *)&hugetlb_infinity, |
1051 | }, | 1051 | }, |
@@ -1054,21 +1054,21 @@ static struct ctl_table vm_table[] = { | |||
1054 | .data = &sysctl_hugetlb_shm_group, | 1054 | .data = &sysctl_hugetlb_shm_group, |
1055 | .maxlen = sizeof(gid_t), | 1055 | .maxlen = sizeof(gid_t), |
1056 | .mode = 0644, | 1056 | .mode = 0644, |
1057 | .proc_handler = &proc_dointvec, | 1057 | .proc_handler = proc_dointvec, |
1058 | }, | 1058 | }, |
1059 | { | 1059 | { |
1060 | .procname = "hugepages_treat_as_movable", | 1060 | .procname = "hugepages_treat_as_movable", |
1061 | .data = &hugepages_treat_as_movable, | 1061 | .data = &hugepages_treat_as_movable, |
1062 | .maxlen = sizeof(int), | 1062 | .maxlen = sizeof(int), |
1063 | .mode = 0644, | 1063 | .mode = 0644, |
1064 | .proc_handler = &hugetlb_treat_movable_handler, | 1064 | .proc_handler = hugetlb_treat_movable_handler, |
1065 | }, | 1065 | }, |
1066 | { | 1066 | { |
1067 | .procname = "nr_overcommit_hugepages", | 1067 | .procname = "nr_overcommit_hugepages", |
1068 | .data = NULL, | 1068 | .data = NULL, |
1069 | .maxlen = sizeof(unsigned long), | 1069 | .maxlen = sizeof(unsigned long), |
1070 | .mode = 0644, | 1070 | .mode = 0644, |
1071 | .proc_handler = &hugetlb_overcommit_handler, | 1071 | .proc_handler = hugetlb_overcommit_handler, |
1072 | .extra1 = (void *)&hugetlb_zero, | 1072 | .extra1 = (void *)&hugetlb_zero, |
1073 | .extra2 = (void *)&hugetlb_infinity, | 1073 | .extra2 = (void *)&hugetlb_infinity, |
1074 | }, | 1074 | }, |
@@ -1078,7 +1078,7 @@ static struct ctl_table vm_table[] = { | |||
1078 | .data = &sysctl_lowmem_reserve_ratio, | 1078 | .data = &sysctl_lowmem_reserve_ratio, |
1079 | .maxlen = sizeof(sysctl_lowmem_reserve_ratio), | 1079 | .maxlen = sizeof(sysctl_lowmem_reserve_ratio), |
1080 | .mode = 0644, | 1080 | .mode = 0644, |
1081 | .proc_handler = &lowmem_reserve_ratio_sysctl_handler, | 1081 | .proc_handler = lowmem_reserve_ratio_sysctl_handler, |
1082 | }, | 1082 | }, |
1083 | { | 1083 | { |
1084 | .procname = "drop_caches", | 1084 | .procname = "drop_caches", |
@@ -1092,7 +1092,7 @@ static struct ctl_table vm_table[] = { | |||
1092 | .data = &min_free_kbytes, | 1092 | .data = &min_free_kbytes, |
1093 | .maxlen = sizeof(min_free_kbytes), | 1093 | .maxlen = sizeof(min_free_kbytes), |
1094 | .mode = 0644, | 1094 | .mode = 0644, |
1095 | .proc_handler = &min_free_kbytes_sysctl_handler, | 1095 | .proc_handler = min_free_kbytes_sysctl_handler, |
1096 | .extra1 = &zero, | 1096 | .extra1 = &zero, |
1097 | }, | 1097 | }, |
1098 | { | 1098 | { |
@@ -1100,7 +1100,7 @@ static struct ctl_table vm_table[] = { | |||
1100 | .data = &percpu_pagelist_fraction, | 1100 | .data = &percpu_pagelist_fraction, |
1101 | .maxlen = sizeof(percpu_pagelist_fraction), | 1101 | .maxlen = sizeof(percpu_pagelist_fraction), |
1102 | .mode = 0644, | 1102 | .mode = 0644, |
1103 | .proc_handler = &percpu_pagelist_fraction_sysctl_handler, | 1103 | .proc_handler = percpu_pagelist_fraction_sysctl_handler, |
1104 | .extra1 = &min_percpu_pagelist_fract, | 1104 | .extra1 = &min_percpu_pagelist_fract, |
1105 | }, | 1105 | }, |
1106 | #ifdef CONFIG_MMU | 1106 | #ifdef CONFIG_MMU |
@@ -1109,7 +1109,7 @@ static struct ctl_table vm_table[] = { | |||
1109 | .data = &sysctl_max_map_count, | 1109 | .data = &sysctl_max_map_count, |
1110 | .maxlen = sizeof(sysctl_max_map_count), | 1110 | .maxlen = sizeof(sysctl_max_map_count), |
1111 | .mode = 0644, | 1111 | .mode = 0644, |
1112 | .proc_handler = &proc_dointvec | 1112 | .proc_handler = proc_dointvec |
1113 | }, | 1113 | }, |
1114 | #else | 1114 | #else |
1115 | { | 1115 | { |
@@ -1117,7 +1117,7 @@ static struct ctl_table vm_table[] = { | |||
1117 | .data = &sysctl_nr_trim_pages, | 1117 | .data = &sysctl_nr_trim_pages, |
1118 | .maxlen = sizeof(sysctl_nr_trim_pages), | 1118 | .maxlen = sizeof(sysctl_nr_trim_pages), |
1119 | .mode = 0644, | 1119 | .mode = 0644, |
1120 | .proc_handler = &proc_dointvec_minmax, | 1120 | .proc_handler = proc_dointvec_minmax, |
1121 | .extra1 = &zero, | 1121 | .extra1 = &zero, |
1122 | }, | 1122 | }, |
1123 | #endif | 1123 | #endif |
@@ -1126,14 +1126,14 @@ static struct ctl_table vm_table[] = { | |||
1126 | .data = &laptop_mode, | 1126 | .data = &laptop_mode, |
1127 | .maxlen = sizeof(laptop_mode), | 1127 | .maxlen = sizeof(laptop_mode), |
1128 | .mode = 0644, | 1128 | .mode = 0644, |
1129 | .proc_handler = &proc_dointvec_jiffies, | 1129 | .proc_handler = proc_dointvec_jiffies, |
1130 | }, | 1130 | }, |
1131 | { | 1131 | { |
1132 | .procname = "block_dump", | 1132 | .procname = "block_dump", |
1133 | .data = &block_dump, | 1133 | .data = &block_dump, |
1134 | .maxlen = sizeof(block_dump), | 1134 | .maxlen = sizeof(block_dump), |
1135 | .mode = 0644, | 1135 | .mode = 0644, |
1136 | .proc_handler = &proc_dointvec, | 1136 | .proc_handler = proc_dointvec, |
1137 | .extra1 = &zero, | 1137 | .extra1 = &zero, |
1138 | }, | 1138 | }, |
1139 | { | 1139 | { |
@@ -1141,7 +1141,7 @@ static struct ctl_table vm_table[] = { | |||
1141 | .data = &sysctl_vfs_cache_pressure, | 1141 | .data = &sysctl_vfs_cache_pressure, |
1142 | .maxlen = sizeof(sysctl_vfs_cache_pressure), | 1142 | .maxlen = sizeof(sysctl_vfs_cache_pressure), |
1143 | .mode = 0644, | 1143 | .mode = 0644, |
1144 | .proc_handler = &proc_dointvec, | 1144 | .proc_handler = proc_dointvec, |
1145 | .extra1 = &zero, | 1145 | .extra1 = &zero, |
1146 | }, | 1146 | }, |
1147 | #ifdef HAVE_ARCH_PICK_MMAP_LAYOUT | 1147 | #ifdef HAVE_ARCH_PICK_MMAP_LAYOUT |
@@ -1150,7 +1150,7 @@ static struct ctl_table vm_table[] = { | |||
1150 | .data = &sysctl_legacy_va_layout, | 1150 | .data = &sysctl_legacy_va_layout, |
1151 | .maxlen = sizeof(sysctl_legacy_va_layout), | 1151 | .maxlen = sizeof(sysctl_legacy_va_layout), |
1152 | .mode = 0644, | 1152 | .mode = 0644, |
1153 | .proc_handler = &proc_dointvec, | 1153 | .proc_handler = proc_dointvec, |
1154 | .extra1 = &zero, | 1154 | .extra1 = &zero, |
1155 | }, | 1155 | }, |
1156 | #endif | 1156 | #endif |
@@ -1160,7 +1160,7 @@ static struct ctl_table vm_table[] = { | |||
1160 | .data = &zone_reclaim_mode, | 1160 | .data = &zone_reclaim_mode, |
1161 | .maxlen = sizeof(zone_reclaim_mode), | 1161 | .maxlen = sizeof(zone_reclaim_mode), |
1162 | .mode = 0644, | 1162 | .mode = 0644, |
1163 | .proc_handler = &proc_dointvec, | 1163 | .proc_handler = proc_dointvec, |
1164 | .extra1 = &zero, | 1164 | .extra1 = &zero, |
1165 | }, | 1165 | }, |
1166 | { | 1166 | { |
@@ -1168,7 +1168,7 @@ static struct ctl_table vm_table[] = { | |||
1168 | .data = &sysctl_min_unmapped_ratio, | 1168 | .data = &sysctl_min_unmapped_ratio, |
1169 | .maxlen = sizeof(sysctl_min_unmapped_ratio), | 1169 | .maxlen = sizeof(sysctl_min_unmapped_ratio), |
1170 | .mode = 0644, | 1170 | .mode = 0644, |
1171 | .proc_handler = &sysctl_min_unmapped_ratio_sysctl_handler, | 1171 | .proc_handler = sysctl_min_unmapped_ratio_sysctl_handler, |
1172 | .extra1 = &zero, | 1172 | .extra1 = &zero, |
1173 | .extra2 = &one_hundred, | 1173 | .extra2 = &one_hundred, |
1174 | }, | 1174 | }, |
@@ -1177,7 +1177,7 @@ static struct ctl_table vm_table[] = { | |||
1177 | .data = &sysctl_min_slab_ratio, | 1177 | .data = &sysctl_min_slab_ratio, |
1178 | .maxlen = sizeof(sysctl_min_slab_ratio), | 1178 | .maxlen = sizeof(sysctl_min_slab_ratio), |
1179 | .mode = 0644, | 1179 | .mode = 0644, |
1180 | .proc_handler = &sysctl_min_slab_ratio_sysctl_handler, | 1180 | .proc_handler = sysctl_min_slab_ratio_sysctl_handler, |
1181 | .extra1 = &zero, | 1181 | .extra1 = &zero, |
1182 | .extra2 = &one_hundred, | 1182 | .extra2 = &one_hundred, |
1183 | }, | 1183 | }, |
@@ -1188,7 +1188,7 @@ static struct ctl_table vm_table[] = { | |||
1188 | .data = &sysctl_stat_interval, | 1188 | .data = &sysctl_stat_interval, |
1189 | .maxlen = sizeof(sysctl_stat_interval), | 1189 | .maxlen = sizeof(sysctl_stat_interval), |
1190 | .mode = 0644, | 1190 | .mode = 0644, |
1191 | .proc_handler = &proc_dointvec_jiffies, | 1191 | .proc_handler = proc_dointvec_jiffies, |
1192 | }, | 1192 | }, |
1193 | #endif | 1193 | #endif |
1194 | { | 1194 | { |
@@ -1196,7 +1196,7 @@ static struct ctl_table vm_table[] = { | |||
1196 | .data = &dac_mmap_min_addr, | 1196 | .data = &dac_mmap_min_addr, |
1197 | .maxlen = sizeof(unsigned long), | 1197 | .maxlen = sizeof(unsigned long), |
1198 | .mode = 0644, | 1198 | .mode = 0644, |
1199 | .proc_handler = &mmap_min_addr_handler, | 1199 | .proc_handler = mmap_min_addr_handler, |
1200 | }, | 1200 | }, |
1201 | #ifdef CONFIG_NUMA | 1201 | #ifdef CONFIG_NUMA |
1202 | { | 1202 | { |
@@ -1204,7 +1204,7 @@ static struct ctl_table vm_table[] = { | |||
1204 | .data = &numa_zonelist_order, | 1204 | .data = &numa_zonelist_order, |
1205 | .maxlen = NUMA_ZONELIST_ORDER_LEN, | 1205 | .maxlen = NUMA_ZONELIST_ORDER_LEN, |
1206 | .mode = 0644, | 1206 | .mode = 0644, |
1207 | .proc_handler = &numa_zonelist_order_handler, | 1207 | .proc_handler = numa_zonelist_order_handler, |
1208 | }, | 1208 | }, |
1209 | #endif | 1209 | #endif |
1210 | #if (defined(CONFIG_X86_32) && !defined(CONFIG_UML))|| \ | 1210 | #if (defined(CONFIG_X86_32) && !defined(CONFIG_UML))|| \ |
@@ -1214,7 +1214,7 @@ static struct ctl_table vm_table[] = { | |||
1214 | .data = &vdso_enabled, | 1214 | .data = &vdso_enabled, |
1215 | .maxlen = sizeof(vdso_enabled), | 1215 | .maxlen = sizeof(vdso_enabled), |
1216 | .mode = 0644, | 1216 | .mode = 0644, |
1217 | .proc_handler = &proc_dointvec, | 1217 | .proc_handler = proc_dointvec, |
1218 | .extra1 = &zero, | 1218 | .extra1 = &zero, |
1219 | }, | 1219 | }, |
1220 | #endif | 1220 | #endif |
@@ -1224,7 +1224,7 @@ static struct ctl_table vm_table[] = { | |||
1224 | .data = &vm_highmem_is_dirtyable, | 1224 | .data = &vm_highmem_is_dirtyable, |
1225 | .maxlen = sizeof(vm_highmem_is_dirtyable), | 1225 | .maxlen = sizeof(vm_highmem_is_dirtyable), |
1226 | .mode = 0644, | 1226 | .mode = 0644, |
1227 | .proc_handler = &proc_dointvec_minmax, | 1227 | .proc_handler = proc_dointvec_minmax, |
1228 | .extra1 = &zero, | 1228 | .extra1 = &zero, |
1229 | .extra2 = &one, | 1229 | .extra2 = &one, |
1230 | }, | 1230 | }, |
@@ -1234,7 +1234,7 @@ static struct ctl_table vm_table[] = { | |||
1234 | .data = &scan_unevictable_pages, | 1234 | .data = &scan_unevictable_pages, |
1235 | .maxlen = sizeof(scan_unevictable_pages), | 1235 | .maxlen = sizeof(scan_unevictable_pages), |
1236 | .mode = 0644, | 1236 | .mode = 0644, |
1237 | .proc_handler = &scan_unevictable_handler, | 1237 | .proc_handler = scan_unevictable_handler, |
1238 | }, | 1238 | }, |
1239 | #ifdef CONFIG_MEMORY_FAILURE | 1239 | #ifdef CONFIG_MEMORY_FAILURE |
1240 | { | 1240 | { |
@@ -1242,7 +1242,7 @@ static struct ctl_table vm_table[] = { | |||
1242 | .data = &sysctl_memory_failure_early_kill, | 1242 | .data = &sysctl_memory_failure_early_kill, |
1243 | .maxlen = sizeof(sysctl_memory_failure_early_kill), | 1243 | .maxlen = sizeof(sysctl_memory_failure_early_kill), |
1244 | .mode = 0644, | 1244 | .mode = 0644, |
1245 | .proc_handler = &proc_dointvec_minmax, | 1245 | .proc_handler = proc_dointvec_minmax, |
1246 | .extra1 = &zero, | 1246 | .extra1 = &zero, |
1247 | .extra2 = &one, | 1247 | .extra2 = &one, |
1248 | }, | 1248 | }, |
@@ -1251,7 +1251,7 @@ static struct ctl_table vm_table[] = { | |||
1251 | .data = &sysctl_memory_failure_recovery, | 1251 | .data = &sysctl_memory_failure_recovery, |
1252 | .maxlen = sizeof(sysctl_memory_failure_recovery), | 1252 | .maxlen = sizeof(sysctl_memory_failure_recovery), |
1253 | .mode = 0644, | 1253 | .mode = 0644, |
1254 | .proc_handler = &proc_dointvec_minmax, | 1254 | .proc_handler = proc_dointvec_minmax, |
1255 | .extra1 = &zero, | 1255 | .extra1 = &zero, |
1256 | .extra2 = &one, | 1256 | .extra2 = &one, |
1257 | }, | 1257 | }, |
@@ -1276,35 +1276,35 @@ static struct ctl_table fs_table[] = { | |||
1276 | .data = &inodes_stat, | 1276 | .data = &inodes_stat, |
1277 | .maxlen = 2*sizeof(int), | 1277 | .maxlen = 2*sizeof(int), |
1278 | .mode = 0444, | 1278 | .mode = 0444, |
1279 | .proc_handler = &proc_dointvec, | 1279 | .proc_handler = proc_dointvec, |
1280 | }, | 1280 | }, |
1281 | { | 1281 | { |
1282 | .procname = "inode-state", | 1282 | .procname = "inode-state", |
1283 | .data = &inodes_stat, | 1283 | .data = &inodes_stat, |
1284 | .maxlen = 7*sizeof(int), | 1284 | .maxlen = 7*sizeof(int), |
1285 | .mode = 0444, | 1285 | .mode = 0444, |
1286 | .proc_handler = &proc_dointvec, | 1286 | .proc_handler = proc_dointvec, |
1287 | }, | 1287 | }, |
1288 | { | 1288 | { |
1289 | .procname = "file-nr", | 1289 | .procname = "file-nr", |
1290 | .data = &files_stat, | 1290 | .data = &files_stat, |
1291 | .maxlen = 3*sizeof(int), | 1291 | .maxlen = 3*sizeof(int), |
1292 | .mode = 0444, | 1292 | .mode = 0444, |
1293 | .proc_handler = &proc_nr_files, | 1293 | .proc_handler = proc_nr_files, |
1294 | }, | 1294 | }, |
1295 | { | 1295 | { |
1296 | .procname = "file-max", | 1296 | .procname = "file-max", |
1297 | .data = &files_stat.max_files, | 1297 | .data = &files_stat.max_files, |
1298 | .maxlen = sizeof(int), | 1298 | .maxlen = sizeof(int), |
1299 | .mode = 0644, | 1299 | .mode = 0644, |
1300 | .proc_handler = &proc_dointvec, | 1300 | .proc_handler = proc_dointvec, |
1301 | }, | 1301 | }, |
1302 | { | 1302 | { |
1303 | .procname = "nr_open", | 1303 | .procname = "nr_open", |
1304 | .data = &sysctl_nr_open, | 1304 | .data = &sysctl_nr_open, |
1305 | .maxlen = sizeof(int), | 1305 | .maxlen = sizeof(int), |
1306 | .mode = 0644, | 1306 | .mode = 0644, |
1307 | .proc_handler = &proc_dointvec_minmax, | 1307 | .proc_handler = proc_dointvec_minmax, |
1308 | .extra1 = &sysctl_nr_open_min, | 1308 | .extra1 = &sysctl_nr_open_min, |
1309 | .extra2 = &sysctl_nr_open_max, | 1309 | .extra2 = &sysctl_nr_open_max, |
1310 | }, | 1310 | }, |
@@ -1313,14 +1313,14 @@ static struct ctl_table fs_table[] = { | |||
1313 | .data = &dentry_stat, | 1313 | .data = &dentry_stat, |
1314 | .maxlen = 6*sizeof(int), | 1314 | .maxlen = 6*sizeof(int), |
1315 | .mode = 0444, | 1315 | .mode = 0444, |
1316 | .proc_handler = &proc_dointvec, | 1316 | .proc_handler = proc_dointvec, |
1317 | }, | 1317 | }, |
1318 | { | 1318 | { |
1319 | .procname = "overflowuid", | 1319 | .procname = "overflowuid", |
1320 | .data = &fs_overflowuid, | 1320 | .data = &fs_overflowuid, |
1321 | .maxlen = sizeof(int), | 1321 | .maxlen = sizeof(int), |
1322 | .mode = 0644, | 1322 | .mode = 0644, |
1323 | .proc_handler = &proc_dointvec_minmax, | 1323 | .proc_handler = proc_dointvec_minmax, |
1324 | .extra1 = &minolduid, | 1324 | .extra1 = &minolduid, |
1325 | .extra2 = &maxolduid, | 1325 | .extra2 = &maxolduid, |
1326 | }, | 1326 | }, |
@@ -1329,7 +1329,7 @@ static struct ctl_table fs_table[] = { | |||
1329 | .data = &fs_overflowgid, | 1329 | .data = &fs_overflowgid, |
1330 | .maxlen = sizeof(int), | 1330 | .maxlen = sizeof(int), |
1331 | .mode = 0644, | 1331 | .mode = 0644, |
1332 | .proc_handler = &proc_dointvec_minmax, | 1332 | .proc_handler = proc_dointvec_minmax, |
1333 | .extra1 = &minolduid, | 1333 | .extra1 = &minolduid, |
1334 | .extra2 = &maxolduid, | 1334 | .extra2 = &maxolduid, |
1335 | }, | 1335 | }, |
@@ -1339,7 +1339,7 @@ static struct ctl_table fs_table[] = { | |||
1339 | .data = &leases_enable, | 1339 | .data = &leases_enable, |
1340 | .maxlen = sizeof(int), | 1340 | .maxlen = sizeof(int), |
1341 | .mode = 0644, | 1341 | .mode = 0644, |
1342 | .proc_handler = &proc_dointvec, | 1342 | .proc_handler = proc_dointvec, |
1343 | }, | 1343 | }, |
1344 | #endif | 1344 | #endif |
1345 | #ifdef CONFIG_DNOTIFY | 1345 | #ifdef CONFIG_DNOTIFY |
@@ -1348,7 +1348,7 @@ static struct ctl_table fs_table[] = { | |||
1348 | .data = &dir_notify_enable, | 1348 | .data = &dir_notify_enable, |
1349 | .maxlen = sizeof(int), | 1349 | .maxlen = sizeof(int), |
1350 | .mode = 0644, | 1350 | .mode = 0644, |
1351 | .proc_handler = &proc_dointvec, | 1351 | .proc_handler = proc_dointvec, |
1352 | }, | 1352 | }, |
1353 | #endif | 1353 | #endif |
1354 | #ifdef CONFIG_MMU | 1354 | #ifdef CONFIG_MMU |
@@ -1358,7 +1358,7 @@ static struct ctl_table fs_table[] = { | |||
1358 | .data = &lease_break_time, | 1358 | .data = &lease_break_time, |
1359 | .maxlen = sizeof(int), | 1359 | .maxlen = sizeof(int), |
1360 | .mode = 0644, | 1360 | .mode = 0644, |
1361 | .proc_handler = &proc_dointvec, | 1361 | .proc_handler = proc_dointvec, |
1362 | }, | 1362 | }, |
1363 | #endif | 1363 | #endif |
1364 | #ifdef CONFIG_AIO | 1364 | #ifdef CONFIG_AIO |
@@ -1367,14 +1367,14 @@ static struct ctl_table fs_table[] = { | |||
1367 | .data = &aio_nr, | 1367 | .data = &aio_nr, |
1368 | .maxlen = sizeof(aio_nr), | 1368 | .maxlen = sizeof(aio_nr), |
1369 | .mode = 0444, | 1369 | .mode = 0444, |
1370 | .proc_handler = &proc_doulongvec_minmax, | 1370 | .proc_handler = proc_doulongvec_minmax, |
1371 | }, | 1371 | }, |
1372 | { | 1372 | { |
1373 | .procname = "aio-max-nr", | 1373 | .procname = "aio-max-nr", |
1374 | .data = &aio_max_nr, | 1374 | .data = &aio_max_nr, |
1375 | .maxlen = sizeof(aio_max_nr), | 1375 | .maxlen = sizeof(aio_max_nr), |
1376 | .mode = 0644, | 1376 | .mode = 0644, |
1377 | .proc_handler = &proc_doulongvec_minmax, | 1377 | .proc_handler = proc_doulongvec_minmax, |
1378 | }, | 1378 | }, |
1379 | #endif /* CONFIG_AIO */ | 1379 | #endif /* CONFIG_AIO */ |
1380 | #ifdef CONFIG_INOTIFY_USER | 1380 | #ifdef CONFIG_INOTIFY_USER |
@@ -1397,7 +1397,7 @@ static struct ctl_table fs_table[] = { | |||
1397 | .data = &suid_dumpable, | 1397 | .data = &suid_dumpable, |
1398 | .maxlen = sizeof(int), | 1398 | .maxlen = sizeof(int), |
1399 | .mode = 0644, | 1399 | .mode = 0644, |
1400 | .proc_handler = &proc_dointvec_minmax, | 1400 | .proc_handler = proc_dointvec_minmax, |
1401 | .extra1 = &zero, | 1401 | .extra1 = &zero, |
1402 | .extra2 = &two, | 1402 | .extra2 = &two, |
1403 | }, | 1403 | }, |