]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ipvs: change type of netns_ipvs->sysctl_sync_qlen_max
authorZhang Yanfei <zhangyanfei@cn.fujitsu.com>
Tue, 26 Mar 2013 23:24:12 +0000 (10:24 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 4 Apr 2013 06:04:11 +0000 (17:04 +1100)
commitb0cc893b3d79f2cf521ffa7fbf64552a91b595cd
tree66cb0b9ea69a0f766a4f4436f6cd188042224311
parente71cbff468c7ae58619170a001a79c95170066c1
ipvs: change type of netns_ipvs->sysctl_sync_qlen_max

This member of struct netns_ipvs is calculated from nr_free_buffer_pages
so change its type to unsigned long in case of overflow.  Also, type of
its related proc var sync_qlen_max and the return type of function
sysctl_sync_qlen_max() should be changed to unsigned long, too.

Besides, the type of ipvs_master_sync_state->sync_queue_len should be
changed to unsigned long accordingly.

Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
Cc: Simon Horman <horms@verge.net.au>
Cc: Julian Anastasov <ja@ssi.bg>
Cc: David Miller <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/net/ip_vs.h
net/netfilter/ipvs/ip_vs_ctl.c