]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] namei fixes (8/19)
authorAl Viro <viro@www.linux.org.uk>
Mon, 6 Jun 2005 20:36:04 +0000 (13:36 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 6 Jun 2005 21:42:25 +0000 (14:42 -0700)
commit773a7a824e5d47997564b3845303fc2ec40c5f26
treec0ba8f1af3d55320a52024d02be4ab9869a0f6e2
parent4cf3bf09365b59cb150ff80f728d050c6721632d
[PATCH] namei fixes (8/19)

In open_namei() we never use path.mnt or path.dentry after exit: or ok:.
Assignment of path.dentry in case of LAST_BIND is dead code and only
obfuscates already convoluted function; assignment of path.mnt after
__do_follow_link() can be moved down to the place where we set path.dentry.

Obviously equivalent transformations, just to clean the air a bit in that
region.

Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/namei.c