Commit [f7ad3c] Maximize Restore History

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>

Miklos Szeredi Miklos Szeredi 2010-08-10

Al Viro Al Viro 2010-08-11

changed fs/cachefiles/daemon.c
changed fs/proc/base.c
changed fs/dcache.c
changed fs/fs_struct.c
changed fs/namei.c
changed fs/namespace.c
changed include/linux/fs_struct.h
changed kernel/auditsc.c
fs/cachefiles/daemon.c Diff Switch to side-by-side view
Loading...
fs/proc/base.c Diff Switch to side-by-side view
Loading...
fs/dcache.c Diff Switch to side-by-side view
Loading...
fs/fs_struct.c Diff Switch to side-by-side view
Loading...
fs/namei.c Diff Switch to side-by-side view
Loading...
fs/namespace.c Diff Switch to side-by-side view
Loading...
include/linux/fs_struct.h Diff Switch to side-by-side view
Loading...
kernel/auditsc.c Diff Switch to side-by-side view
Loading...