Simplify exec_permission_lite() logic
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 28 Aug 2009 17:50:37 +0000 (10:50 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 8 Sep 2009 18:07:43 +0000 (11:07 -0700)
commitb7a437b08a44a3ed7e3a052eb39d2c5f618b603b
treefdb03edf0254e9f24fe7f3e3e2f75d3ac0a3f9e0
parente8e66ed25b5cbeebed69c475f6c108e52078a3b3
Simplify exec_permission_lite() logic

Instead of returning EAGAIN and having the caller do something
special for that case,  just do the special case directly.

Reviewed-by: James Morris <jmorris@namei.org>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/namei.c