[patch-2.3.41-pre4] small optimization of access(2)
Horst von Brand
vonbrand en sleipnir.valparaiso.cl
Sab Ene 29 07:19:47 CST 2000
Tigran Aivazian <tigran en sco.COM> said:
> This patch reduces the length of holding kernel lock and removes one extra
> initialization and a goto label from sys_access() and uses if(mode &
> ~mask) instead of if(mode != (mode&mask)).
Careful!
mode = 0xFF0F
mask = 0xF000
mode & ~mask == 0x0F00, i.e., true
mode & mask == 0xFF00 != mode
--
Horst von Brand vonbrand en sleipnir.valparaiso.cl
Casilla 9G, Viña del Mar, Chile +56 32 672616
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo en vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
Más información sobre la lista de distribución Ayuda