Take fs_struct handling to new file (fs/fs_struct.c)
Pure code move; two new helper functions for nfsd and daemonize
(unshare_fs_struct() and daemonize_fs_struct() resp.; for now -
the same code as used to be in callers). unshare_fs_struct()
exported (for nfsd, as copy_fs_struct()/exit_fs() used to be),
copy_fs_struct() and exit_fs() don't need exports anymore.
Signed-off-by:
Al Viro <viro@zeniv.linux.org.uk>
Showing
- fs/Makefile 1 addition, 1 deletionfs/Makefile
- fs/fs_struct.c 141 additions, 0 deletionsfs/fs_struct.c
- fs/internal.h 6 additions, 0 deletionsfs/internal.h
- fs/namei.c 0 additions, 7 deletionsfs/namei.c
- fs/namespace.c 0 additions, 68 deletionsfs/namespace.c
- fs/nfsd/nfssvc.c 2 additions, 5 deletionsfs/nfsd/nfssvc.c
- include/linux/fs_struct.h 2 additions, 0 deletionsinclude/linux/fs_struct.h
- kernel/exit.c 1 addition, 30 deletionskernel/exit.c
- kernel/fork.c 2 additions, 27 deletionskernel/fork.c
Loading
Please register or sign in to comment