Skip to content

Commit

Permalink
ocfs2/trivial: Wrap ocfs2_sysfile_cluster_lock_key within define.
Browse files Browse the repository at this point in the history
Actually ocfs2_sysfile_cluster_lock_key is only used if we enable
CONFIG_DEBUG_LOCK_ALLOC. Wrap it so that we can avoid a building
warning.
fs/ocfs2/sysfile.c:53: warning: ‘ocfs2_sysfile_cluster_lock_key’
defined but not used

Signed-off-by: Tao Ma <tao.ma@oracle.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
  • Loading branch information
Tao Ma authored and Joel Becker committed Jun 22, 2009
1 parent cb25797 commit d246ab3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/ocfs2/sysfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ static inline int is_in_system_inode_array(struct ocfs2_super *osb,
int type,
u32 slot);

#ifdef CONFIG_DEBUG_LOCK_ALLOC
static struct lock_class_key ocfs2_sysfile_cluster_lock_key[NUM_SYSTEM_INODES];
#endif

static inline int is_global_system_inode(int type)
{
Expand Down

0 comments on commit d246ab3

Please sign in to comment.