]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'vfs-cleanups' (random vfs cleanups)
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 21 May 2012 15:46:08 +0000 (08:46 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 21 May 2012 15:46:08 +0000 (08:46 -0700)
commit1050ed3f145dc79480cb701345a28ecd0b461dd5
tree899f42e88f926fb4501402cf4ee4aa0903421ef5
parent876456d8c5e6edd44eaa3e492188b3440b4faa16
parent7b29e876f34255cb2072b377f675e67a8c09941e
Merge branch 'vfs-cleanups' (random vfs cleanups)

This teaches vfs_fstat() to use the appropriate f[get|put]_light
functions, allowing it to avoid some unnecessary locking for the common
case.

More noticeably, it also cleans up and simplifies the "getname_flags()"
function, which now relies on the architecture strncpy_from_user() doing
all the user access checks properly, instead of hacking around the fact
that on x86 it didn't use to do it right (see commit b9aff4a4d0f0: "x86:
merge 32/64-bit versions of 'strncpy_from_user()' and speed it up").

* vfs-cleanups:
  VFS: make vfs_fstat() use f[get|put]_light()
  VFS: clean up and simplify getname_flags()
  x86: make word-at-a-time strncpy_from_user clear bytes at the end
fs/namei.c
fs/stat.c