new helper: __alloc_fd()
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 12 Aug 2012 21:27:30 +0000 (17:27 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 27 Sep 2012 01:08:53 +0000 (21:08 -0400)
commit30feca9a9095c6060f461c49a03a5d57bc84b4ee
treea8c2898366470e795dac369040b905985c0bb9fc
parent5e5ae75609a7ddb2a903445569789a4be71d74ce
new helper: __alloc_fd()

Essentially, alloc_fd() in a files_struct we own a reference to.
Most of the time wanting to use it is a sign of lousy API
design (such as android/binder).  It's *not* a general-purpose
interface; better that than open-coding its guts, but again,
playing with other process' descriptor table is a sign of bad
design.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/staging/android/binder.c
fs/file.c
include/linux/fdtable.h