aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/cluster/tcp.c
diff options
context:
space:
mode:
authorRandy Dunlap <randy.dunlap@oracle.com>2010-12-27 14:55:08 -0500
committerJoel Becker <joel.becker@oracle.com>2011-01-07 21:02:00 -0500
commite70d84501b630e390b4242fb4ac629b694c11484 (patch)
tree58c3f64e24a239885a902fa4a81c8908cade71ec /fs/ocfs2/cluster/tcp.c
parentdb02754c8a1205b24beac70562c45ca5d671151f (diff)
ocfs2: fix build for OCFS2_FS_STATS not enabled
When CONFIG_OCFS2_FS_STATS is not enabled: fs/ocfs2/cluster/tcp.c:1254: error: implicit declaration of function 'o2net_update_recv_stats' Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Cc: Mark Fasheh <mfasheh@suse.com> Cc: Joel Becker <joel.becker@oracle.com> Cc: ocfs2-devel@oss.oracle.com Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs/ocfs2/cluster/tcp.c')
-rw-r--r--fs/ocfs2/cluster/tcp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ocfs2/cluster/tcp.c b/fs/ocfs2/cluster/tcp.c
index bc2309554d0b..3b11cb1e38fc 100644
--- a/fs/ocfs2/cluster/tcp.c
+++ b/fs/ocfs2/cluster/tcp.c
@@ -257,6 +257,8 @@ static void o2net_update_recv_stats(struct o2net_sock_container *sc)
257 257
258# define o2net_update_send_stats(a, b) 258# define o2net_update_send_stats(a, b)
259 259
260# define o2net_update_recv_stats(sc)
261
260#endif /* CONFIG_OCFS2_FS_STATS */ 262#endif /* CONFIG_OCFS2_FS_STATS */
261 263
262static inline int o2net_reconnect_delay(void) 264static inline int o2net_reconnect_delay(void)