Repository navigation
Commit 3f50006
mm/vmalloc.c: simplify /proc/vmallocinfo implementation
Many seq_file helpers exist for simplifying implementation of virtual
files especially, for /proc nodes. however, the helpers for iteration
over list_head are available but aren't adopted to implement
/proc/vmallocinfo currently.
Simplify /proc/vmallocinfo implementation by using existing seq_file
helpers.
Link: http://lkml.kernel.org/r/57FDF2E5.1000201@zoho.com
Signed-off-by: zijun_hu <zijun_hu@htc.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parent 29fac03 commit 3f50006
1 file changed
Lines changed: 5 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2574 | 2574 | | |
2575 | 2575 | | |
2576 | 2576 | | |
2577 | | - | |
2578 | | - | |
2579 | | - | |
2580 | 2577 | | |
2581 | | - | |
2582 | | - | |
2583 | | - | |
2584 | | - | |
2585 | | - | |
2586 | | - | |
2587 | | - | |
2588 | | - | |
2589 | | - | |
2590 | | - | |
| 2578 | + | |
2591 | 2579 | | |
2592 | 2580 | | |
2593 | 2581 | | |
2594 | 2582 | | |
2595 | | - | |
2596 | | - | |
2597 | | - | |
2598 | | - | |
2599 | | - | |
2600 | | - | |
2601 | | - | |
2602 | | - | |
| 2583 | + | |
2603 | 2584 | | |
2604 | 2585 | | |
2605 | 2586 | | |
| |||
2634 | 2615 | | |
2635 | 2616 | | |
2636 | 2617 | | |
2637 | | - | |
| 2618 | + | |
2638 | 2619 | | |
2639 | 2620 | | |
| 2621 | + | |
| 2622 | + | |
2640 | 2623 | | |
2641 | 2624 | | |
2642 | 2625 | | |
| |||
0 commit comments