HomeFreeBSD

fusefs: fix panic when writing with O_DIRECT and using writeback cache

Description

fusefs: fix panic when writing with O_DIRECT and using writeback cache

When a fusefs file system is mounted using the writeback cache, the cache
may still be bypassed by opening a file with O_DIRECT. When writing with
O_DIRECT, the cache must be invalidated for the affected portion of the
file. Fix some panics caused by inadvertently invalidating too much.

Sponsored by: The FreeBSD Foundation

Details

Provenance
asomersAuthored on
Parents
rS350387: MFHead @r350386
Branches
Unknown
Tags
Unknown