]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] r/o bind mounts: prepare for write access checks: collapse if()
authorDave Hansen <haveblue@us.ibm.com>
Sun, 1 Oct 2006 06:29:01 +0000 (23:29 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 1 Oct 2006 07:39:30 +0000 (00:39 -0700)
commit4a1f669f82511c273e869754acef350e7f8544a8
tree02f3cc489d0e47fb688587222d1793bd9298679b
parentae44de6ca313bbd66850ee75865efae93df54f34
[PATCH] r/o bind mounts: prepare for write access checks: collapse if()

We're shortly going to be adding a bunch more permission checks in these
functions.  That requires adding either a bunch of new if() conditions, or
some gotos.  This patch collapses existing if()s and uses gotos instead to
prepare for the upcoming changes.

Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
Acked-by: Christoph Hellwig <hch@lst.de>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/namei.c
fs/open.c