aboutsummaryrefslogtreecommitdiffstats
path: root/config/kernel-in-compat-syscall.m4
diff options
context:
space:
mode:
authorColeman Kane <[email protected]>2023-09-11 23:21:29 -0400
committerBrian Behlendorf <[email protected]>2023-09-21 18:38:31 -0700
commitb37f29341b9aec1b6e45d55b6f7a1bc5b2723f7a (patch)
treeff8a76f28d1e48212f804e966872f205ef7fc85c /config/kernel-in-compat-syscall.m4
parent2dc89b922bd12f86db193b7cd8d87159dee93bc6 (diff)
Linux 6.6 compat: use inode_get/set_ctime*(...)
In Linux commit 13bc24457850583a2e7203ded05b7209ab4bc5ef, direct access to the i_ctime member of struct inode was removed. The new approach is to use accessor methods that exclusively handle passing the timestamp around by value. This change adds new tests for each of these functions and introduces zpl_* equivalents in include/os/linux/zfs/sys/zpl.h. In where the inode_get/set_ctime*() functions exist, these zpl_* calls will be mapped to the new functions. On older kernels, these macros just wrap direct-access calls. The code that operated on an address of ip->i_ctime to call ZFS_TIME_DECODE() now will take a local copy using zpl_inode_get_ctime(), and then pass the address of the local copy when performing the ZFS_TIME_DECODE() call, in all cases, rather than directly accessing the member. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Coleman Kane <[email protected]> Closes #15263 Closes #15257
Diffstat (limited to 'config/kernel-in-compat-syscall.m4')
0 files changed, 0 insertions, 0 deletions