Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

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
changed fs/cachefiles
changed fs/cachefiles/daemon.c
changed fs/dcache.c
changed fs/fs_struct.c
changed fs/namei.c
changed fs/namespace.c
changed fs/proc
changed fs/proc/base.c
changed include
changed include/linux
changed include/linux/fs_struct.h
changed kernel
changed kernel/auditsc.c
fs
Directory.
fs/cachefiles
Directory.
fs/cachefiles/daemon.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...
fs/proc
Directory.
fs/proc/base.c Diff Switch to side-by-side view
Loading...
include
Directory.
include/linux
Directory.
include/linux/fs_struct.h Diff Switch to side-by-side view
Loading...
kernel
Directory.
kernel/auditsc.c Diff Switch to side-by-side view
Loading...