diff options
author | Tony Luck <tony.luck@intel.com> | 2010-07-20 03:54:41 -0400 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2010-07-26 14:16:50 -0400 |
commit | 0f1a932f5d4d6ee71afb141914e2d5f11f27eee1 (patch) | |
tree | 231f4a8cd8baa2a948205a842a4ebc323b162c35 /fs/xfs/linux-2.6 | |
parent | 3f34885cd7c6a3f4deea48e3bbc704d91d5704f4 (diff) |
xfs: Fix build when CONFIG_XFS_POSIX_ACL=n
When CONFIG_XFS_POSIX_ACL is not set "xfs_check_acl" is #defined
to NULL - which breaks the code attempting to add a tracepoint
on this function.
Only define the tracepoint when the function exists.
Signed-off-by: Tony Luck <tony.luck@intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/linux-2.6')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_trace.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/linux-2.6/xfs_trace.h b/fs/xfs/linux-2.6/xfs_trace.h index 24e5580bf3e7..c657cdca2cd2 100644 --- a/fs/xfs/linux-2.6/xfs_trace.h +++ b/fs/xfs/linux-2.6/xfs_trace.h | |||
@@ -571,7 +571,9 @@ DEFINE_INODE_EVENT(xfs_readlink); | |||
571 | DEFINE_INODE_EVENT(xfs_alloc_file_space); | 571 | DEFINE_INODE_EVENT(xfs_alloc_file_space); |
572 | DEFINE_INODE_EVENT(xfs_free_file_space); | 572 | DEFINE_INODE_EVENT(xfs_free_file_space); |
573 | DEFINE_INODE_EVENT(xfs_readdir); | 573 | DEFINE_INODE_EVENT(xfs_readdir); |
574 | #ifdef CONFIG_XFS_POSIX_ACL | ||
574 | DEFINE_INODE_EVENT(xfs_check_acl); | 575 | DEFINE_INODE_EVENT(xfs_check_acl); |
576 | #endif | ||
575 | DEFINE_INODE_EVENT(xfs_vm_bmap); | 577 | DEFINE_INODE_EVENT(xfs_vm_bmap); |
576 | DEFINE_INODE_EVENT(xfs_file_ioctl); | 578 | DEFINE_INODE_EVENT(xfs_file_ioctl); |
577 | DEFINE_INODE_EVENT(xfs_file_compat_ioctl); | 579 | DEFINE_INODE_EVENT(xfs_file_compat_ioctl); |