samples: use non-racy method for /proc/marker-example creation
authorDenis V. Lunev <den@openvz.org>
Tue, 29 Apr 2008 08:02:16 +0000 (01:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 Apr 2008 15:06:21 +0000 (08:06 -0700)
commit16e70f64a9358133a14872eb72cf39b6f38b6212
tree0ed4ea5d67aff278a4e27f0ec6ff7c7f7b2906b6
parent659f865ea65a60564ce00a0c571099d1fa55e8e3
samples: use non-racy method for /proc/marker-example creation

Use proc_create() to make sure that ->proc_fops be setup before gluing PDE to
main tree.

Signed-off-by: Denis V. Lunev <den@openvz.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
samples/markers/marker-example.c