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>
Showing
- fs/cachefiles/daemon.c 2 additions, 12 deletionsfs/cachefiles/daemon.c
- fs/dcache.c 2 additions, 10 deletionsfs/dcache.c
- fs/fs_struct.c 1 addition, 6 deletionsfs/fs_struct.c
- fs/namei.c 3 additions, 12 deletionsfs/namei.c
- fs/namespace.c 1 addition, 4 deletionsfs/namespace.c
- fs/proc/base.c 11 additions, 11 deletionsfs/proc/base.c
- include/linux/fs_struct.h 27 additions, 0 deletionsinclude/linux/fs_struct.h
- kernel/auditsc.c 2 additions, 7 deletionskernel/auditsc.c
Loading
Please register or sign in to comment