]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'stat-cleanups' (clean up copying of stat info to user space)
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 21 May 2012 15:41:38 +0000 (08:41 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 21 May 2012 15:41:38 +0000 (08:41 -0700)
commit876456d8c5e6edd44eaa3e492188b3440b4faa16
treed9a42d2508ec8ce651a978bd5bbbcf3205a77e1d
parentd8cb0d8eda6ea4a96bb275c7849d27e876afb0e2
parent31b0968770c848374afdc0bfae8360c11078f96e
Merge branch 'stat-cleanups' (clean up copying of stat info to user space)

This makes cp_new_stat() a bit more readable, and avoids having to
memset() the whole structure just to fill in a couple of padding fields.

This is another result of me looking at code generation of functions
that show up high on certain kernel profiles, and just going "Oh, let's
just clean that up".

Architectures that don't supply the #define to fill just the padding
fields will still fall back to memset().

* stat-cleanups:
  vfs: don't force a big memset of stat data just to clear padding fields
  vfs: de-crapify "cp_new_stat()" function