namei's componentname struct has a cn_flags field that was changed to 64 bits at some point to allow for more flags, but some users of this field still treat it as an int (or sometimes long).
This patch fixes all of those that I could find.
I added the ULL suffix to the individual flag macro literals to make masking operations just work.
I changed some variables to bool but I was careful to do so in a way that would still work if bool is typedef'd to int.