]>
Commit | Line | Data |
---|---|---|
48ef8ba0 BB |
1 | dnl # |
2 | dnl # 3.5 API change, | |
3 | dnl # inode_operations.truncate_range removed | |
4 | dnl # | |
5 | AC_DEFUN([SPL_AC_INODE_TRUNCATE_RANGE], [ | |
6 | AC_MSG_CHECKING([whether truncate_range() inode operation is available]) | |
7 | SPL_LINUX_TRY_COMPILE([ | |
8 | #include <linux/fs.h> | |
9 | ],[ | |
10 | struct inode_operations ops; | |
11 | ops.truncate_range = NULL; | |
12 | ],[ | |
13 | AC_MSG_RESULT(yes) | |
14 | AC_DEFINE(HAVE_INODE_TRUNCATE_RANGE, 1, | |
15 | [truncate_range() inode operation is available]) | |
16 | ],[ | |
17 | AC_MSG_RESULT(no) | |
18 | ]) | |
19 | ]) |