Page MenuHomeFreeBSD

cuse(3): Optimise small reads and writes.
ClosedPublic

Authored by hselasky on Sep 20 2022, 2:00 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 21 2024, 9:47 AM
Unknown Object (File)
Mar 21 2024, 9:47 AM
Unknown Object (File)
Mar 21 2024, 9:47 AM
Unknown Object (File)
Dec 28 2023, 2:16 PM
Unknown Object (File)
Dec 28 2023, 2:16 PM
Unknown Object (File)
Dec 28 2023, 2:16 PM
Unknown Object (File)
Dec 20 2023, 4:34 AM
Unknown Object (File)
Sep 11 2023, 5:02 AM
Subscribers

Diff Detail

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

Event Timeline

@meka_tilda.center : Can you test this and see if there is any performance impact?

hselasky retitled this revision from cuse: Optimise small reads and writes. to cuse(3): Optimise small reads and writes..Sep 20 2022, 2:02 PM
sys/fs/cuse/cuse.c
1303

Can we lift this code into a subroutine? The indentation makes it hard to read.

1613

The comment should explain why it's necessary.

1615

When does this condition arise? The comparison error > len looks wrong, but I guess error holds the number of bytes copied upon success.

hselasky marked an inline comment as done.

Address comments from @markj .

hselasky marked 2 inline comments as done.

Move a comment.

Fix some whitespace that sneaked in.

Generally I think this looks good.

sys/fs/cuse/cuse.c
825

Might make sense to do the int -> bool stuff in a separate commit... My quick scan doesn't see any issues.

This revision is now accepted and ready to land.Oct 3 2022, 3:12 PM