mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 10:01:01 +03:00
3c20361075
As of Linux commit 9249e17fe094d853d1ef7475dd559a2cc7e23d42 the mount flags are now passed to sget() so they can be used when initializing a new superblock. ZFS never uses sget() in this fashion so we can simply pass a zero and add a zpl_sget() compatibility wrapper. Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Issue #873
24 lines
565 B
Plaintext
24 lines
565 B
Plaintext
dnl #
|
|
dnl # 3.6 API change,
|
|
dnl # 'sget' now takes the mount flags as an argument.
|
|
dnl #
|
|
AC_DEFUN([ZFS_AC_KERNEL_5ARG_SGET],
|
|
[AC_MSG_CHECKING([whether sget() wants 5 args])
|
|
ZFS_LINUX_TRY_COMPILE([
|
|
#include <linux/fs.h>
|
|
],[
|
|
struct file_system_type *type = NULL;
|
|
int (*test)(struct super_block *,void *) = NULL;
|
|
int (*set)(struct super_block *,void *) = NULL;
|
|
int flags = 0;
|
|
void *data = NULL;
|
|
(void) sget(type, test, set, flags, data);
|
|
],[
|
|
AC_MSG_RESULT(yes)
|
|
AC_DEFINE(HAVE_5ARG_SGET, 1, [sget() wants 5 args])
|
|
],[
|
|
AC_MSG_RESULT(no)
|
|
])
|
|
])
|
|
|