]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - fs/stat.c
vfs: de-crapify "cp_new_stat()" function
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 7 May 2012 00:47:30 +0000 (17:47 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 7 May 2012 00:47:30 +0000 (17:47 -0700)
commita52dd971f947893bc7735396c74cfa591f0a7558
tree34c846f65ca97b70df13cad2e9a8beac59677da0
parentd48b97b403d23f6df0b990cee652bdf9a52337a3
vfs: de-crapify "cp_new_stat()" function

It's an unreadable mess of 32-bit vs 64-bit #ifdef's that mostly follow
a rather simple pattern.

Make a helper #define to handle that pattern, in the process making the
code both shorter and more readable.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/stat.c