Page MenuHomeFreeBSD

fusefs: Address -Wunused-but-set-variable warnings
ClosedPublic

Authored by markj on Jan 19 2022, 10:49 PM.
Tags
None
Referenced Files
F154348150: D33957.id101664.diff
Tue, Apr 28, 12:28 AM
Unknown Object (File)
Wed, Apr 15, 2:33 AM
Unknown Object (File)
Wed, Apr 15, 2:28 AM
Unknown Object (File)
Tue, Apr 7, 7:04 AM
Unknown Object (File)
Mon, Mar 30, 2:27 AM
Unknown Object (File)
Sun, Mar 29, 7:09 PM
Unknown Object (File)
Mar 28 2026, 7:51 AM
Unknown Object (File)
Mar 27 2026, 6:51 AM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/fs/fuse/fuse_io.c
525

The need for this went away with commit 84879e46c2bea842c3ad7b1b8b26aeb81946f5a8.

sys/fs/fuse/fuse_node.c
454

I'm not sure if this is an actual bug, though invalidating more than necessary probably isn't a correctness issue.

asomers added inline comments.
sys/fs/fuse/fuse_node.c
454

It's deliberate. If we get here, that means the FUSE server changed the file's size even though we had it cached. If it changed the size, then it probably changed other stuff too. That's why it's best to invalidate the cache for the whole file.

This revision now requires changes to proceed.Jan 19 2022, 11:15 PM
This revision is now accepted and ready to land.Jan 20 2022, 12:07 AM