seq_file: use proc_create() in documentation
commit6be4b78993498c253e99b12c4d0f7684a36955e2
authorAlexey Dobriyan <adobriyan@gmail.com>
Wed, 16 Dec 2009 00:47:00 +0000 (15 16:47 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 16 Dec 2009 15:20:07 +0000 (16 07:20 -0800)
tree0ae9cc80b96a825b1723d427c250d16edf52deeb
parent82c1e49ccb28534b4e8b77d5f0ff553f19912d4d
seq_file: use proc_create() in documentation

Using create_proc_entry() + ->proc_fops assignment is racy because
->proc_fops will be NULL for some time, use proc_create() to avoid race.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/filesystems/seq_file.txt