Page MenuHomeFreeBSD

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

Authored by markj on Jan 19 2022, 10:49 PM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 21 2024, 5:24 AM
Unknown Object (File)
Jan 31 2024, 2:07 AM
Unknown Object (File)
Jan 12 2024, 8:04 AM
Unknown Object (File)
Dec 20 2023, 6:22 AM
Unknown Object (File)
Dec 13 2023, 6:41 PM
Unknown Object (File)
Oct 26 2023, 4:50 PM
Unknown Object (File)
Oct 13 2023, 10:22 AM
Unknown Object (File)
Jul 15 2023, 5:15 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