]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit6902d925d568cd5bfda8a1a328bf08d26d1bab46
tree02f3cc489d0e47fb688587222d1793bd9298679b
parentdb5fed26b2e0beed939b773dd5896077a1794d65
[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