fs: add nd_jump_link
authorChristoph Hellwig <hch@infradead.org>
Mon, 18 Jun 2012 14:47:04 +0000 (10:47 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 14 Jul 2012 12:35:40 +0000 (16:35 +0400)
commitb5fb63c18315c5510c1d0636179c057e0c761c77
tree19e42c9aa285eb64c277ece4083d4834351b3d5b
parent408ef013cc9e2f94a14f7ccbbe52ddfb18437a99
fs: add nd_jump_link

Add a helper that abstracts out the jump to an already parsed struct path
from ->follow_link operation from procfs.  Not only does this clean up
the code by moving the two sides of this game into a single helper, but
it also prepares for making struct nameidata private to namei.c

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c
fs/proc/base.c
include/linux/namei.h