Page MenuHomeFreeBSD

Remove "struct ucred*" argument from vtruncbuf
ClosedPublic

Authored by asomers on May 23 2019, 2:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 1, 12:56 AM
Unknown Object (File)
Oct 24 2023, 11:54 PM
Unknown Object (File)
Aug 28 2023, 4:30 AM
Unknown Object (File)
Aug 28 2023, 4:27 AM
Unknown Object (File)
Aug 28 2023, 4:27 AM
Unknown Object (File)
Aug 28 2023, 4:18 AM
Unknown Object (File)
Aug 26 2023, 2:17 PM
Unknown Object (File)
Jul 1 2023, 3:23 PM
Subscribers

Details

Summary

Remove "struct ucred*" argument from vtruncbuf

vtruncbuf takes a "struct ucred*" argument. AFAICT, it's been unused ever
since that function was first added in r34611. Remove it.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

LGTM, thanks!

sys/fs/fuse/fuse_io.c
392 ↗(On Diff #57764)

I'd structure this as two separate commits, vtruncbuf first, fuse second; or at least update the commit message to reflect that FUSE was also changed in a similar fashion.

466 ↗(On Diff #57764)

Might as well fix the line wrapping whitespace while you're here? Not a big deal. Ditto below.

sys/fs/nfsclient/nfs_clbio.c
1835 ↗(On Diff #57764)

Ditto the comment in FUSE: I'd structure this as another independent commit, but if not, please mention it in the commit message as well.

This revision is now accepted and ready to land.May 23 2019, 4:24 PM
sys/fs/nfsclient/nfs_clbio.c
1835 ↗(On Diff #57764)

Ok, I'll mention it in the commit message. I don't want to separate it into two commits, because that would create more unused arguments in ncl_meta_setsize and fuse_vnode_setsize.

sys/fs/nfsclient/nfs_clbio.c
1835 ↗(On Diff #57764)

Briefly, yes, but then the followup commit(s) would remove those. Doing it all in one is totally reasonable, too.

This revision was automatically updated to reflect the committed changes.