> The FD_PREPARE() cleanup class allocated and installed immediately and > required fd_publish() to be the last thing that could fail. Reimplement > it on the deferred path. FD_PREPARE() reserves a slot with fd_prepare() > and stages the file on it. The syscall exit installs on success and > drops on error. fd_prepare_fd() and fd_prepare_file() now read the slot. > fd_publish() is gone. > > Convert every FD_PREPARE() user since fdf.err can now become a simple > IS_ERR(fdf). > > Signed-off-by: Christian Brauner (Amutable) <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great! -- Sashiko AI review ยท https://sashiko.dev/#/patchset/20260915-work-fd-reserve-unify-folded-v1-0-4d5217d6b...@kernel.org?part=25
