]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: Replace use of sockets_allocated with specified macro.
authorTonghao Zhang <xiangxia.m.yue@gmail.com>
Fri, 22 Dec 2017 18:15:20 +0000 (10:15 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Dec 2017 18:47:52 +0000 (13:47 -0500)
commit614a8eb504ae3a71d909c9ce0ce5235bcee76400
tree7ce698aa610e3782b9a29c6e45a9551b1fb7a0ad
parentd123e2bc4c383dd2a498aa34d68248692baf0704
sctp: Replace use of sockets_allocated with specified macro.

The patch(3a062d249a07) replaces all uses of struct sock fields'
memory_pressure, memory_allocated, sockets_allocated, and sysctl_mem
to accessor macros. But the sockets_allocated field of sctp sock is
not replaced at all. Then replace it now for unifying the code.

Fixes: 3a062d249a07 ("foundations of per-cgroup memory pressure controlling.")
Cc: Glauber Costa <glommer@parallels.com>
Signed-off-by: Tonghao Zhang <zhangtonghao@didichuxing.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/socket.c