HomeFreeBSD

Linux 6.1 compat: open inside tmpfile()

Description

Linux 6.1 compat: open inside tmpfile()

commit d27c81847b43584483b5509ff352e7e727b0ce87 upstream

Linux 863f144 modified the .tmpfile interface to pass a struct file,
rather than a struct dentry, and expect the tmpfile implementation to
open inside of tmpfile().

This patch implements a configuration test that checks for this new API
and appropriately sets a HAVE_TMPFILE_DENTRY flag that tracks this old
API. Contingent on this flag, the appropriate API is implemented.

Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Antonio Russo <aerusso@aerusso.net>
Closes #14301
Closes #14343

Details

Provenance
Antonio Russo <aerusso@aerusso.net>Authored on Dec 31 2022, 2:51 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jan 10 2023, 1:15 AM
Parents
rG5371d8dae785: ZTS: close in mmapwrite.c
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG138d2b29dd01: Linux 6.1 compat: open inside tmpfile() (authored by Antonio Russo <aerusso@aerusso.net>).Jan 10 2023, 1:15 AM