aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorOleg Nesterov <[email protected]>2013-10-16 22:10:04 +0200
committerIngo Molnar <[email protected]>2013-10-29 12:02:52 +0100
commit3ea2f2b96f9e636f49eb10962e96db3e19cab157 (patch)
tree47cbcc90d4daa2155c2a5f0ebd357a0499d78316 /net/lapb/lapb_iface.c
parent32c5fb7e7d18b4fd37c5e29dea731151e9d66866 (diff)
perf: Do not waste PAGE_SIZE bytes for ALIGN(8) in perf_event_mmap_event()
perf_event_mmap_event() does kzalloc(PATH_MAX + sizeof(u64)) to ensure we can align the size later. However this means that we actually allocate PAGE_SIZE * 2 buffer, seems too much. Change this code to allocate PATH_MAX==PAGE_SIZE bytes, but tell d_path() to not use the last sizeof(u64) bytes. Note: it is not clear why do we need __GFP_ZERO, see the next patch. Signed-off-by: Oleg Nesterov <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions