diff options
Diffstat (limited to 'fs/proc')
-rw-r--r-- | fs/proc/meminfo.c | 2 | ||||
-rw-r--r-- | fs/proc/proc_tty.c | 12 | ||||
-rw-r--r-- | fs/proc/task_nommu.c | 4 |
3 files changed, 7 insertions, 11 deletions
diff --git a/fs/proc/meminfo.c b/fs/proc/meminfo.c index 43d23948384a..74ea974f5ca6 100644 --- a/fs/proc/meminfo.c +++ b/fs/proc/meminfo.c | |||
@@ -120,7 +120,7 @@ static int meminfo_proc_show(struct seq_file *m, void *v) | |||
120 | K(i.freeram-i.freehigh), | 120 | K(i.freeram-i.freehigh), |
121 | #endif | 121 | #endif |
122 | #ifndef CONFIG_MMU | 122 | #ifndef CONFIG_MMU |
123 | K((unsigned long) atomic_read(&mmap_pages_allocated)), | 123 | K((unsigned long) atomic_long_read(&mmap_pages_allocated)), |
124 | #endif | 124 | #endif |
125 | K(i.totalswap), | 125 | K(i.totalswap), |
126 | K(i.freeswap), | 126 | K(i.freeswap), |
diff --git a/fs/proc/proc_tty.c b/fs/proc/proc_tty.c index 4a9e0f65ae60..83adcc869437 100644 --- a/fs/proc/proc_tty.c +++ b/fs/proc/proc_tty.c | |||
@@ -144,16 +144,12 @@ void proc_tty_register_driver(struct tty_driver *driver) | |||
144 | { | 144 | { |
145 | struct proc_dir_entry *ent; | 145 | struct proc_dir_entry *ent; |
146 | 146 | ||
147 | if (!driver->ops->read_proc || !driver->driver_name || | 147 | if (!driver->driver_name || driver->proc_entry || |
148 | driver->proc_entry) | 148 | !driver->ops->proc_fops) |
149 | return; | 149 | return; |
150 | 150 | ||
151 | ent = create_proc_entry(driver->driver_name, 0, proc_tty_driver); | 151 | ent = proc_create_data(driver->driver_name, 0, proc_tty_driver, |
152 | if (!ent) | 152 | driver->ops->proc_fops, driver); |
153 | return; | ||
154 | ent->read_proc = driver->ops->read_proc; | ||
155 | ent->data = driver; | ||
156 | |||
157 | driver->proc_entry = ent; | 153 | driver->proc_entry = ent; |
158 | } | 154 | } |
159 | 155 | ||
diff --git a/fs/proc/task_nommu.c b/fs/proc/task_nommu.c index 253afc04484c..863464d5519c 100644 --- a/fs/proc/task_nommu.c +++ b/fs/proc/task_nommu.c | |||
@@ -137,14 +137,14 @@ static int nommu_vma_show(struct seq_file *m, struct vm_area_struct *vma) | |||
137 | } | 137 | } |
138 | 138 | ||
139 | seq_printf(m, | 139 | seq_printf(m, |
140 | "%08lx-%08lx %c%c%c%c %08lx %02x:%02x %lu %n", | 140 | "%08lx-%08lx %c%c%c%c %08llx %02x:%02x %lu %n", |
141 | vma->vm_start, | 141 | vma->vm_start, |
142 | vma->vm_end, | 142 | vma->vm_end, |
143 | flags & VM_READ ? 'r' : '-', | 143 | flags & VM_READ ? 'r' : '-', |
144 | flags & VM_WRITE ? 'w' : '-', | 144 | flags & VM_WRITE ? 'w' : '-', |
145 | flags & VM_EXEC ? 'x' : '-', | 145 | flags & VM_EXEC ? 'x' : '-', |
146 | flags & VM_MAYSHARE ? flags & VM_SHARED ? 'S' : 's' : 'p', | 146 | flags & VM_MAYSHARE ? flags & VM_SHARED ? 'S' : 's' : 'p', |
147 | vma->vm_pgoff << PAGE_SHIFT, | 147 | (unsigned long long) vma->vm_pgoff << PAGE_SHIFT, |
148 | MAJOR(dev), MINOR(dev), ino, &len); | 148 | MAJOR(dev), MINOR(dev), ino, &len); |
149 | 149 | ||
150 | if (file) { | 150 | if (file) { |