powerpc/spufs: only add ".ctx" file with "debug" mount option
authorJeremy Kerr <jk@ozlabs.org>
Thu, 3 Jul 2008 01:42:20 +0000 (11:42 +1000)
committerJeremy Kerr <jk@ozlabs.org>
Wed, 9 Jul 2008 00:13:41 +0000 (10:13 +1000)
commit2c3e47871d18f93b8bc2892fb41432111201356d
tree2336e5a9eaf69bfd92f5eee198a13a1382107a67
parent6f7dde812defe5bc49cf463ac1579ffeda5cbfd4
powerpc/spufs: only add ".ctx" file with "debug" mount option

Currently, the .ctx debug file in spu context directories is always
present.

We'd prefer to prevent users from relying on this file, so add a
"debug" mount option to spufs. The .ctx file will only be added to
the context directories when this option is present.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
arch/powerpc/platforms/cell/spufs/file.c
arch/powerpc/platforms/cell/spufs/inode.c
arch/powerpc/platforms/cell/spufs/spufs.h