]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] do namei_flags calculation inside open_namei()
authorDave Hansen <haveblue@us.ibm.com>
Fri, 15 Feb 2008 22:37:27 +0000 (14:37 -0800)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 19 Apr 2008 04:25:31 +0000 (00:25 -0400)
commitd57999e1527f0b0c818846dcba5a23015beb4823
tree6cd6f1e773fb19b18531997131b0887f835dcf03
parent3925e6fc1f774048404fdd910b0345b06c699eb4
[PATCH] do namei_flags calculation inside open_namei()

My end goal here is to make sure all users of may_open()
return filps.  This will ensure that we properly release
mount write counts which were taken for the filp in
may_open().

This patch moves the sys_open flags to namei flags
calculation into fs/namei.c.  We'll shortly be moving
the nameidata_to_filp() calls into namei.c, and this
gets the sys_open flags to a place where we can get
at them when we need them.

Acked-by: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c
fs/open.c