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

Details

Provenance
rob.norris_klarasystems.comAuthored on Dec 16 2023, 7:01 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Dec 21 2023, 7:03 PM
Parents
rG494aaaed89cb: Tag zfs-2.2.2
Branches
Unknown
Tags
Unknown