fs: proc -- Make /proc/<pid>/map_files being CHECKPOINT_RESTORE dependent
PATCH 1/1 fs: proc -- Make /proc/<pid>/map_files being CHECKPOINT_RESTORE dependent
This entry was introduced in a sake of C/R, so no need to built it in by default.
Signed-off-by Cyrill Gorcunov <[email protected]>
---
For -mm tree
fs/proc/base.c | 6 ++++++ 1 file changed, 6 insertions(+)
fs/proc/base.c +6 -0
@@ -2160,6 +2160,8 @@ static const struct file_operations proc .llseek = default_llseek, }; +#ifdef CONFIG_CHECKPOINT_RESTORE +/* * dname_to_vma_addr - maps a dentry name into two unsigned longs * which represent vma start and end addresses.
@@ -2505,6 +2507,8 @@ static const struct file_operations proc .llseek = default_llseek, }; +#endif /* CONFIG_CHECKPOINT_RESTORE */ +/* * /proc/pid/fd needs a special permission handler so that a process can still * access /proc/self/fd after it has executed a setuid().
@@ -3120,7 +3124,9 @@ static const struct inode_operations prostatic const struct pid_entry tgid_base_stuff[] = {DIR ("task" ,S_IRUGO |S_IXUGO , proc_task_inode_operations, proc_task_operations),DIR ("fd" ,S_IRUSR |S_IXUSR , proc_fd_inode_operations, proc_fd_operations), +#ifdef CONFIG_CHECKPOINT_RESTOREDIR ("map_files" ,S_IRUSR |S_IXUSR , proc_map_files_inode_operations, proc_map_files_operations), +#endifDIR ("fdinfo" ,S_IRUSR |S_IXUSR , proc_fdinfo_inode_operations, proc_fdinfo_operations),DIR ("ns" ,S_IRUSR |S_IXUGO , proc_ns_dir_inode_operations, proc_ns_dir_operations), #ifdef CONFIG_NET