]> granicus.if.org Git - zfs/commit
Handle any invalidate_inodes_check prototype.
authorEtienne Dechamps <e-t172@akegroup.org>
Thu, 2 Aug 2012 13:33:31 +0000 (15:33 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 6 Aug 2012 18:39:49 +0000 (11:39 -0700)
commit476ff5a4daf804c28c87a0bb4a833e09eb01a050
treebe626adea060930c20c4efbda1636030b61da514
parent6576a1a70dedfc7d5a5e1533a9e3e56074de4c79
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
config/spl-build.m4
configure