You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[PATCH] proc: remove useless (and buggy) ->nlink settings
Bug: pnx8550 code creates directory but resets ->nlink to 1. create_proc_entry() et al will correctly set ->nlink for you. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Jeff Dike <jdike@addtoit.com> Cc: Corey Minyard <minyard@acm.org> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Cc: Kyle McMartin <kyle@mcmartin.ca> Cc: Martin Schwidefsky <schwidefsky@de.ibm.com> Cc: Greg KH <greg@kroah.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
891dcd2f7a
commit
b653d081c1
@@ -1253,7 +1253,6 @@ static int __init mf_proc_init(void)
|
||||
ent = create_proc_entry("cmdline", S_IFREG|S_IRUSR|S_IWUSR, mf);
|
||||
if (!ent)
|
||||
return 1;
|
||||
ent->nlink = 1;
|
||||
ent->data = (void *)(long)i;
|
||||
ent->read_proc = proc_mf_dump_cmdline;
|
||||
ent->write_proc = proc_mf_change_cmdline;
|
||||
@@ -1264,7 +1263,6 @@ static int __init mf_proc_init(void)
|
||||
ent = create_proc_entry("vmlinux", S_IFREG|S_IWUSR, mf);
|
||||
if (!ent)
|
||||
return 1;
|
||||
ent->nlink = 1;
|
||||
ent->data = (void *)(long)i;
|
||||
ent->proc_fops = &proc_vmlinux_operations;
|
||||
}
|
||||
@@ -1272,7 +1270,6 @@ static int __init mf_proc_init(void)
|
||||
ent = create_proc_entry("side", S_IFREG|S_IRUSR|S_IWUSR, mf_proc_root);
|
||||
if (!ent)
|
||||
return 1;
|
||||
ent->nlink = 1;
|
||||
ent->data = (void *)0;
|
||||
ent->read_proc = proc_mf_dump_side;
|
||||
ent->write_proc = proc_mf_change_side;
|
||||
@@ -1280,7 +1277,6 @@ static int __init mf_proc_init(void)
|
||||
ent = create_proc_entry("src", S_IFREG|S_IRUSR|S_IWUSR, mf_proc_root);
|
||||
if (!ent)
|
||||
return 1;
|
||||
ent->nlink = 1;
|
||||
ent->data = (void *)0;
|
||||
ent->read_proc = proc_mf_dump_src;
|
||||
ent->write_proc = proc_mf_change_src;
|
||||
|
||||
Reference in New Issue
Block a user