HomeFreeBSD

Handle any invalidate_inodes_check prototype.

Description

Handle any invalidate_inodes_check prototype.

In the comments of commit 723aa3b0c2eed070f7eeadd2ce2d87f46da6d0f8,
mmatuska reported that the test for invalidate_inodes_check() is broken
if invalidate_inodes() takes two arguments.

This patch fixes the issue by resorting to another approach for
detecting invalidate_inodes_check(): is simply checks if
invalidate_inodes is defined as a macro. If it is, then it concludes
that invalidate_inodes_check() is available. This will continue to work
even if the prototype of invalidate_inodes_check() changes over time.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #148

Details

Provenance
Etienne Dechamps <e-t172@akegroup.org>Authored on Aug 2 2012, 1:33 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Aug 6 2012, 6:39 PM
Parents
rG6576a1a70ded: Fix incorrect type in spl_kmem_cache_set_move() parameter
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG476ff5a4daf8: Handle any invalidate_inodes_check prototype. (authored by Etienne Dechamps <e-t172@akegroup.org>).Aug 6 2012, 6:39 PM