remarkable-linux/fs/nfs
Trond Myklebust 1d6757fbff [PATCH] NFS: Fix lookup intent handling
We should never apply a lookup intent to anything other than the last
path component in an open(), create() or access() call.

Introduce the helper nfs_lookup_check_intent() which always returns
zero if LOOKUP_CONTINUE or LOOKUP_PARENT are set, and returns the
intent flags if we're on the last component of the lookup.
By doing so, we fix a bug in open(O_EXCL), where we may end up
optimizing away a real lookup of the parent directory.

Problem noticed by Linda Dunaphant <linda.dunaphant@ccur.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-06-07 15:53:47 -07:00
..
callback.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
callback.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
callback_proc.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
callback_xdr.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
delegation.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
delegation.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
dir.c [PATCH] NFS: Fix lookup intent handling 2005-06-07 15:53:47 -07:00
direct.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
file.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
idmap.c [PATCH] make some things static 2005-05-05 16:36:47 -07:00
inode.c [PATCH] make some things static 2005-05-05 16:36:47 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mount_clnt.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
nfs2xdr.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
nfs3proc.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
nfs3xdr.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
nfs4proc.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
nfs4renewd.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
nfs4state.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
nfs4xdr.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
nfsroot.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pagelist.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
proc.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
read.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
symlink.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
unlink.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
write.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00