aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorCesar Eduardo Barros <[email protected]>2011-03-22 16:33:16 -0700
committerLinus Torvalds <[email protected]>2011-03-22 17:44:06 -0700
commite8e6c2ec403ecfaa226857d8204344c98fe12b7b (patch)
tree93a3cdaf385c72ba1f98add399b34ba65608efff /tools/perf/scripts/python/bin
parent80b0df12b808bf8e8391afae1b43f5e529f76d89 (diff)
sys_swapon: do not depend on "type" after allocation
Within sys_swapon, after the swap_info entry has been allocated, we always have type == p->type and swap_info[type] == p. Use this fact to reduce the dependency on the "type" local variable within the function, as a preparation to move the allocation of the swap_info entry to a separate function. Signed-off-by: Cesar Eduardo Barros <[email protected]> Tested-by: Eric B Munson <[email protected]> Acked-by: Eric B Munson <[email protected]> Reviewed-by: Pekka Enberg <[email protected]> Reviewed-by: KAMEZAWA Hiroyuki <[email protected]> Cc: Hugh Dickins <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions