Re: [PATCH] f2fs: return symlink writeback errors

From: Matthew Wilcox

Date: Fri Aug 07 2026 - 10:21:44 EST


On Fri, Aug 07, 2026 at 09:04:45PM +0800, Wenjie Qi wrote:
> F2FS writes long symlink data with page_symlink() and then flushes the
> symlink mapping to reduce the chance of exposing a broken symlink.
>
> That flush result is currently ignored. If the writeback fails, symlink()
> still returns success even though the symlink is not durable and the same
> operation can already surface -EIO through syncfs().
>
> Return the writeback error to userspace and skip the dirsync flush once the
> symlink data flush has failed.
>
> Fixes: 424fd5d831e1 ("f2fs: Remove f2fs_get_node_page()")

That commit did not touch this code.