Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 73055 Build 69938: arc lint + arc unit
Event Timeline
Normally, if one branch uses {}, other branch should do it as well. So the patch is more style-compliant as is.
style(9) says otherwise ("Braces that are not necessary may be left out.", and see the example just below that part).
Besides removing not necessary braces being my personal preference, it would also reduce the diff here (even if admittedly it is quite small so does not make a big difference).
Regarding braces... I prefer to leave it with the braces. My preference is to apply to both branches if applied to one. Style says "may" be left out. There are many examples of the balanced use, including about 10 in this file.
Also, I realized that I missed moving the vnlru_read_freevnodes() call here. Will update for that. Sorry for the churn.
Yes, "may". I was responding to kib@, who was implying "must not". If there are other uses in the file, fine (well, I might axe them when I get to rewrite this part, but unfortunately this is not going to happen any time soon).