File: kernel-drop-inode.m4

package info (click to toggle)
zfs-linux 2.3.5-2
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid
  • size: 71,372 kB
  • sloc: ansic: 393,918; sh: 67,823; asm: 47,734; python: 8,163; makefile: 5,129; perl: 859; sed: 41
file content (24 lines) | stat: -rw-r--r-- 617 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
dnl #
dnl # 6.18 API change
dnl # - generic_drop_inode() renamed to inode_generic_drop()
dnl # - generic_delete_inode() renamed to inode_just_drop()
dnl #
AC_DEFUN([ZFS_AC_KERNEL_SRC_INODE_GENERIC_DROP], [
	ZFS_LINUX_TEST_SRC([inode_generic_drop], [
		#include <linux/fs.h>
	],[
		struct inode *ip = NULL;
		inode_generic_drop(ip);
	])
])

AC_DEFUN([ZFS_AC_KERNEL_INODE_GENERIC_DROP], [
	AC_MSG_CHECKING([whether inode_generic_drop() exists])
	ZFS_LINUX_TEST_RESULT([inode_generic_drop], [
		AC_MSG_RESULT(yes)
		AC_DEFINE(HAVE_INODE_GENERIC_DROP, 1,
			[inode_generic_drop() exists])
	],[
		AC_MSG_RESULT(no)
	])
])