]>
Commit | Line | Data |
---|---|---|
393b44c7 CP |
1 | dnl # |
2 | dnl # 2.6.33 API change | |
3 | dnl # Added eops->commit_metadata() callback to allow the underlying | |
4 | dnl # filesystem to determine the most efficient way to commit the inode. | |
5 | dnl # Prior to this the nfs server would issue an explicit fsync(). | |
6 | dnl # | |
7 | AC_DEFUN([ZFS_AC_KERNEL_COMMIT_METADATA], [ | |
8 | AC_MSG_CHECKING([whether eops->commit_metadata() exists]) | |
9 | ZFS_LINUX_TRY_COMPILE([ | |
10 | #include <linux/exportfs.h> | |
11 | int commit_metadata(struct inode *inode) { return 0; } | |
12 | static struct export_operations eops __attribute__ ((unused))={ | |
13 | .commit_metadata = commit_metadata, | |
14 | }; | |
15 | ],[ | |
16 | ],[ | |
17 | AC_MSG_RESULT(yes) | |
18 | AC_DEFINE(HAVE_COMMIT_METADATA, 1, | |
19 | [eops->commit_metadata() exists]) | |
20 | ],[ | |
21 | AC_MSG_RESULT(no) | |
22 | ]) | |
23 | ]) |