take rlimit check to callers of expand_files()
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 12 Aug 2012 20:17:59 +0000 (16:17 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 27 Sep 2012 01:08:53 +0000 (21:08 -0400)
commitf33ff9927f42045116d738ee47ff7bc59f739bd7
tree917e0d7c10392a884a0aeda8733bdd2ef8e2c105
parent352e3b249284235e00745f3e71fc348b913e5deb
take rlimit check to callers of expand_files()

... except for one in android, where the check is different
and already done in caller.  No need to recalculate rlimit
many times in alloc_fd() either.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/fcntl.c
fs/file.c