diff options
Diffstat (limited to 'fs/proc/internal.h')
-rw-r--r-- | fs/proc/internal.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/fs/proc/internal.h b/fs/proc/internal.h index 548e7447ea47..37f1648adc23 100644 --- a/fs/proc/internal.h +++ b/fs/proc/internal.h | |||
@@ -10,6 +10,7 @@ | |||
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include <linux/proc_fs.h> | 12 | #include <linux/proc_fs.h> |
13 | #include <linux/task_ref.h> | ||
13 | 14 | ||
14 | struct vmalloc_info { | 15 | struct vmalloc_info { |
15 | unsigned long used; | 16 | unsigned long used; |
@@ -41,13 +42,23 @@ extern struct file_operations proc_maps_operations; | |||
41 | extern struct file_operations proc_numa_maps_operations; | 42 | extern struct file_operations proc_numa_maps_operations; |
42 | extern struct file_operations proc_smaps_operations; | 43 | extern struct file_operations proc_smaps_operations; |
43 | 44 | ||
45 | extern struct file_operations proc_maps_operations; | ||
46 | extern struct file_operations proc_numa_maps_operations; | ||
47 | extern struct file_operations proc_smaps_operations; | ||
48 | |||
49 | |||
44 | void free_proc_entry(struct proc_dir_entry *de); | 50 | void free_proc_entry(struct proc_dir_entry *de); |
45 | 51 | ||
46 | int proc_init_inodecache(void); | 52 | int proc_init_inodecache(void); |
47 | 53 | ||
48 | static inline struct task_struct *proc_task(struct inode *inode) | 54 | static inline struct task_ref *proc_tref(struct inode *inode) |
55 | { | ||
56 | return PROC_I(inode)->tref; | ||
57 | } | ||
58 | |||
59 | static inline struct task_struct *get_proc_task(struct inode *inode) | ||
49 | { | 60 | { |
50 | return PROC_I(inode)->task; | 61 | return get_tref_task(proc_tref(inode)); |
51 | } | 62 | } |
52 | 63 | ||
53 | static inline int proc_fd(struct inode *inode) | 64 | static inline int proc_fd(struct inode *inode) |