HomeFreeBSD

linux 6.7 compat: simplify current_time() check

Description

linux 6.7 compat: simplify current_time() check

6.7 changed the names of the time members in struct inode, so we can't
assign back to it because we don't know its name. In practice this
doesn't matter though - if we're missing current_time(), then we must be
on <4.9, and we know our fallback will need to return timespec.

Signed-off-by: Rob Norris <robn@despairlabs.com>
Sponsored-by: https://github.com/sponsors/robn
(cherry picked from commit b3626f0a3576152256bbbd7fedab90e063037ba1)

Details

Provenance
rob.norris_klarasystems.comAuthored on Dec 16 2023, 7:01 AM
Tony Hutter <hutter2@llnl.gov>Committed on Feb 8 2024, 9:29 PM
Parents
rG4b849db210d1: Linux 6.6 compat: fix configure error with clang (#15558)
Branches
Unknown
Tags
Unknown