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.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Sponsored-by: https://github.com/sponsors/robn
Closes #15681

Details

Provenance
rob.norris_klarasystems.comAuthored on Dec 16 2023, 7:01 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Dec 20 2023, 7:47 PM
Parents
rGdbda45160ffa: Test LWB buffer overflow for block cloning
Branches
Unknown
Tags
Unknown