Skip to content

Commit

Permalink
ocfs2: fix build for OCFS2_FS_STATS not enabled
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Randy Dunlap authored and Joel Becker committed Jan 8, 2011
1 parent db02754 commit e70d845
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/ocfs2/cluster/tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@ static void o2net_update_recv_stats(struct o2net_sock_container *sc)

# define o2net_update_send_stats(a, b)

# define o2net_update_recv_stats(sc)

#endif /* CONFIG_OCFS2_FS_STATS */

static inline int o2net_reconnect_delay(void)
Expand Down

0 comments on commit e70d845

Please sign in to comment.