OSDN Git Service

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)
commit8cb38a602478e9f806571f6920b0a3298aabf042
tree7ce698aa610e3782b9a29c6e45a9551b1fb7a0ad
parentf7084059a9cb9e56a186e1677b1dcffd76c2cd24
sctp: Replace use of sockets_allocated with specified macro.

The patch(180d8cd942ce) 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: 180d8cd942ce ("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