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)
commit80df554275c21edca22ece02448bdb378c2ee9f1
treeea4a3f342c07929025c193b2b67e206e1008afa9
parentde95c4a46a6e608444ccaf541087594553c7df11
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