]> git.baikalelectronics.ru Git - kernel.git/commit
taskstats: use the libnl API to align nlattr on 64-bit
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Fri, 22 Apr 2016 15:31:24 +0000 (17:31 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 24 Apr 2016 00:13:25 +0000 (20:13 -0400)
commitdf565368b61692c9414feecdb8a5e360b8131786
treeea4a3f342c07929025c193b2b67e206e1008afa9
parent4bde5e68bc997441ffbf5d7a86c0a6e1e38a6bbf
taskstats: use the libnl API to align nlattr on 64-bit

Goal of this patch is to use the new libnl API to align netlink attribute
when needed.
The layout of the netlink message will be a bit different after the patch,
because the padattr (TASKSTATS_TYPE_STATS) will be inside the nested
attribute instead of before it.

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
kernel/taskstats.c