]> bbs.cooldavid.org Git - net-next-2.6.git/commit - fs/namei.c
[PATCH] sanitize lookup_hash prototype
authorChristoph Hellwig <hch@lst.de>
Wed, 9 Nov 2005 05:35:06 +0000 (21:35 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 9 Nov 2005 15:56:00 +0000 (07:56 -0800)
commit49705b7743fd8f5632a95ec4c6547d169d27ac1f
treeb209b1f94bfcfee522c44d2abef1cdb196219a52
parent8c744fb83da0771afa04695028e3550b798dad90
[PATCH] sanitize lookup_hash prototype

->permission and ->lookup have a struct nameidata * argument these days to
pass down lookup intents.  Unfortunately some callers of lookup_hash don't
actually pass this one down.  For lookup_one_len() we don't have a struct
nameidata to pass down, but as this function is a library function only
used by filesystem code this is an acceptable limitation.  All other
callers should pass down the nameidata, so this patch changes the
lookup_hash interface to only take a struct nameidata argument and derives
the other two arguments to __lookup_hash from it.  All callers already have
the nameidata argument available so this is not a problem.

At the same time I'd like to deprecate the lookup_hash interface as there
are better exported interfaces for filesystem usage.  Before it can
actually be removed I need to fix up rpc_pipefs.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Cc: Ram Pai <linuxram@us.ibm.com>
Cc: Jeff Mahoney <jeffm@suse.com>
Cc: Al Viro <viro@ftp.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Documentation/feature-removal-schedule.txt
fs/namei.c
include/linux/namei.h
net/sunrpc/rpc_pipe.c