diff options
author | Ignacy Gawędzki <ignacy.gawedzki@green-communications.fr> | 2015-02-13 22:47:05 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-02-19 20:45:53 (GMT) |
commit | 1c4cff0cf55011792125b6041bc4e9713e46240f (patch) | |
tree | ecc9dc4e465d69c6e6afff06c6a473af7a6cc65a /net/ceph | |
parent | 5c2770079fb9b8c5bfb7113d9e76de66e77a0e24 (diff) | |
download | linux-1c4cff0cf55011792125b6041bc4e9713e46240f.tar.xz |
gen_stats.c: Duplicate xstats buffer for later use
The gnet_stats_copy_app() function gets called, more often than not, with its
second argument a pointer to an automatic variable in the caller's stack.
Therefore, to avoid copying garbage afterwards when calling
gnet_stats_finish_copy(), this data is better copied to a dynamically allocated
memory that gets freed after use.
[xiyou.wangcong@gmail.com: remove a useless kfree()]
Signed-off-by: Ignacy Gawędzki <ignacy.gawedzki@green-communications.fr>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ceph')
0 files changed, 0 insertions, 0 deletions