vfs: add helpers to get root and pwd
authorMiklos Szeredi <mszeredi@suse.cz>
Tue, 10 Aug 2010 09:41:36 +0000 (11:41 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 11 Aug 2010 04:28:20 +0000 (00:28 -0400)
commitf7ad3c6be90809b53b7f0ae9d4eaa45ce2564a79
treedc9b09188bab35320200f318b5e7b52f24dc43ad
parent542ce7a9bc6b3838832ae0f4f8de30c667af8ff3
vfs: add helpers to get root and pwd

Add three helpers that retrieve a refcounted copy of the root and cwd
from the supplied fs_struct.

 get_fs_root()
 get_fs_pwd()
 get_fs_root_and_pwd()

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/cachefiles/daemon.c
fs/dcache.c
fs/fs_struct.c
fs/namei.c
fs/namespace.c
fs/proc/base.c
include/linux/fs_struct.h
kernel/auditsc.c