Skip to content

Commit

Permalink
Linux 6.8 compat: fix inode permission tests
Browse files Browse the repository at this point in the history
The name inode_permission is now defined in the kernel. Rename ours to
test_permission, in line with most of our other tests.

Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Rob Norris <[email protected]>
Sponsored-by: https://despairlabs.com/sponsor/
Closes openzfs#15805
  • Loading branch information
robn authored and behlendorf committed Jan 29, 2024
1 parent 67d9d8b commit 5238f7a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions config/kernel-inode-permission.m4
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ AC_DEFUN([ZFS_AC_KERNEL_SRC_PERMISSION], [
#include <linux/fs.h>
#include <linux/sched.h>
static int inode_permission(struct mnt_idmap *idmap,
static int test_permission(struct mnt_idmap *idmap,
struct inode *inode, int mask) { return 0; }
static const struct inode_operations
iops __attribute__ ((unused)) = {
.permission = inode_permission,
.permission = test_permission,
};
],[])
Expand All @@ -25,12 +25,12 @@ AC_DEFUN([ZFS_AC_KERNEL_SRC_PERMISSION], [
#include <linux/fs.h>
#include <linux/sched.h>
static int inode_permission(struct user_namespace *userns,
static int test_permission(struct user_namespace *userns,
struct inode *inode, int mask) { return 0; }
static const struct inode_operations
iops __attribute__ ((unused)) = {
.permission = inode_permission,
.permission = test_permission,
};
],[])
])
Expand Down

0 comments on commit 5238f7a

Please sign in to comment.