Skip to contentSkip to conversation

cleanup in fs/super.c (do_kern_mount())

PATCH [email protected] 1 participant 1 message Sep 3, 2001

lore
Share & tools
lore
#0 lore raw
Quoted 5 lines
Quoted 3 lines
Quoted 1 line

+#define MS_NOUSER (1<<31)

a pity to waste a bit

No, it's not useful for userland ;-) For internal use.

Hmm. Bad style, but acceptable if you never do it again :-)

[I mean: as soon as we start using more than 16 mount flags we have the top 16 bits, but only 2^16 - 1 values are available since 0xc0ed is a conventional value; now if the bits are completely independent then it is strange to forbid one particular random combination, and it is cleaner to use only 15 bits with 2^15 values. If the top bit is never used from user space then it is available for internal purposes.]

Andries