xfs: Fix build when CONFIG_XFS_POSIX_ACL=n
commit0f1a932f5d4d6ee71afb141914e2d5f11f27eee1
authorTony Luck <tony.luck@intel.com>
Tue, 20 Jul 2010 07:54:41 +0000 (20 17:54 +1000)
committerAlex Elder <aelder@sgi.com>
Mon, 26 Jul 2010 18:16:50 +0000 (26 13:16 -0500)
tree231f4a8cd8baa2a948205a842a4ebc323b162c35
parent3f34885cd7c6a3f4deea48e3bbc704d91d5704f4
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>
fs/xfs/linux-2.6/xfs_trace.h