diff options
author | Dave Chinner <david@fromorbit.com> | 2015-08-25 10:13:35 +1000 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2015-08-25 10:13:35 +1000 |
commit | 70b33a7466baac62103e04c916b8915665b79d80 (patch) | |
tree | 14549cadf0ddb49f3392eb9869c62e3d5ec4ce20 /fs/xfs/xfs_inode.c | |
parent | aa493382cb8c5768ba452d87f175fc2aff63911d (diff) | |
parent | f79af0b9090895520c69fbe1939184c4f8ed8426 (diff) |
Merge branch 'xfs-misc-fixes-for-4.3-3' into for-next
Diffstat (limited to 'fs/xfs/xfs_inode.c')
-rw-r--r-- | fs/xfs/xfs_inode.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index 30555f8fd44b..dc40a6d5ae0d 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c @@ -362,7 +362,13 @@ int xfs_lots_retries; int xfs_lock_delays; #endif -#ifdef CONFIG_LOCKDEP +/* + * xfs_lockdep_subclass_ok() is only used in an ASSERT, so is only called when + * DEBUG or XFS_WARN is set. And MAX_LOCKDEP_SUBCLASSES is then only defined + * when CONFIG_LOCKDEP is set. Hence the complex define below to avoid build + * errors and warnings. + */ +#if (defined(DEBUG) || defined(XFS_WARN)) && defined(CONFIG_LOCKDEP) static bool xfs_lockdep_subclass_ok( int subclass) |