ocfs2: fix type conversion risk when get cluster attributes
authorJoseph Qi <joseph.qi@huawei.com>
Thu, 3 Apr 2014 21:47:00 +0000 (14:47 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 3 Apr 2014 23:20:55 +0000 (16:20 -0700)
commit41b63efb68115eaf48197672d59005765884b078
treed9a245b0835e80f1688e71def2896ffa31b5bbb6
parent8ed6b23709b346f7bfc1edab47003a205a6a9f69
ocfs2: fix type conversion risk when get cluster attributes

In o2nm_cluster, cl_idle_timeout_ms, cl_keepalive_delay_ms, as well as
cl_reconnect_delay_ms, are defined as type of unsigned int.  So we
should also use unsigned int in the helper functions.

Signed-off-by: Joseph Qi <joseph.qi@huawei.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Mark Fasheh <mfasheh@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/cluster/tcp.c