Fix for proc/md (remove the 'kludge')

Richard Guenther (zxmpm11@student.uni-tuebingen.de)
Mon, 19 Jan 1998 13:25:41 +0100 (MET)




Hi!

I think, this patch is correct. It removes the 'kludge'
from procfs to support md. Since md is not supposed to
compile as a module, we need no extra symbols from proc.

Richard.

--
Richard Guenther <richard.guenther@student.uni-tuebingen.de>
PGP: 2E829319 - 2F 83 FC 93 E9 E4 19 E2 93 7A 32 42 45 37 23 57
WWW: http://www.anatom.uni-tuebingen.de/~richi/

diff -u linux/drivers/block/md.c:1.1.1.1 linux/drivers/block/md.c:1.2 --- linux/drivers/block/md.c:1.1.1.1 Sun Jan 18 14:51:30 1998 +++ linux/drivers/block/md.c Sun Jan 18 15:02:42 1998 @@ -846,6 +846,7 @@ static struct proc_dir_entry proc_md = { PROC_MD, 6, "mdstat", S_IFREG | S_IRUGO, 1, 0, 0, + 0, &proc_array_inode_operations, }; static void md_geninit (struct gendisk *gdisk) diff -u linux/fs/proc/root.c:1.1 linux/fs/proc/root.c:1.2 --- linux/fs/proc/root.c:1.1 Sun Jan 18 14:02:12 1998 +++ linux/fs/proc/root.c Sun Jan 18 15:02:59 1998 @@ -342,11 +342,6 @@ if (dp->ops == NULL) dp->ops = &proc_file_inode_operations; } - /* - * kludge until we fixup the md device driver - */ - if (dp->low_ino == PROC_MD) - dp->ops = &proc_array_inode_operations; return 0; }