Fix stack alignment in the kernel to be on an 8 byte boundary as required
by AAPCS.
Reorder code to avoid the stat buffer being used uninitialized.

Obtained from:	NetApp