patch-2.3.48 linux/fs/proc/kcore.c

Next file: linux/fs/proc/kmsg.c
Previous file: linux/fs/proc/inode.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.47/linux/fs/proc/kcore.c linux/fs/proc/kcore.c
@@ -26,15 +26,11 @@
 
 static ssize_t read_kcore(struct file *, char *, size_t, loff_t *);
 
-static struct file_operations proc_kcore_operations = {
+struct file_operations proc_kcore_operations = {
 	read:		read_kcore,
 	open:		open_kcore,
 };
 
-struct inode_operations proc_kcore_inode_operations = {
-	&proc_kcore_operations,
-};
-
 #ifdef CONFIG_KCORE_AOUT
 static ssize_t read_kcore(struct file *file, char *buf, size_t count, loff_t *ppos)
 {
@@ -323,7 +319,7 @@
 	 * and after elf_kcore_store_hdr() returns.
 	 * For now assume that num_vma does not change (TA)
 	 */
-	proc_root_kcore.size = size = get_kcore_size(&num_vma, &elf_buflen);
+	proc_root_kcore->size = size = get_kcore_size(&num_vma, &elf_buflen);
 	if (buflen == 0 || *fpos >= size)
 		return 0;
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)