HomeFreeBSD

linux: zfs: ctldir: set [amc]time to snapshot's creation property

Description

linux: zfs: ctldir: set [amc]time to snapshot's creation property

If looking up a snapdir inode failed, hold pool config – hold the
snapshot – get its creation property – release it – release it,
then use that as the [amc]time in the allocated inode. If that
fails then fall back to current time. No performance impact since
this is only done when allocating a new snapdir inode.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #15110
Closes #15117

Details

Provenance
наб <nabijaczleweli@nabijaczleweli.xyz>Authored on Aug 1 2023, 3:50 PM
GitHub <noreply@github.com>Committed on Aug 1 2023, 3:50 PM
Parents
rG6751634d7752: Linux 4.20 compat: wrapper function for iov_iter type access
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGa21ca18d4d29: linux: zfs: ctldir: set [amc]time to snapshot's creation property (authored by наб <nabijaczleweli@nabijaczleweli.xyz>).Aug 1 2023, 3:50 PM