mm: use non-racy method for /proc/swaps creation
authorDenis V. Lunev <den@openvz.org>
Tue, 29 Apr 2008 08:02:13 +0000 (01:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 Apr 2008 15:06:20 +0000 (08:06 -0700)
commit3d71f86f4dfccd749e4421f10301f3f3b31da88a
tree7a052e776b660a2fa1bbe3702fd061bc3d3e6a37
parent6a6375db13703b42dd51b28576d444bb73c541b9
mm: use non-racy method for /proc/swaps 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: 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>
mm/swapfile.c