diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2008-07-03 11:42:20 +1000 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2008-07-09 10:13:41 +1000 |
commit | 2c3e47871d18f93b8bc2892fb41432111201356d (patch) | |
tree | 2336e5a9eaf69bfd92f5eee198a13a1382107a67 /arch/powerpc/platforms/cell/spufs/file.c | |
parent | 6f7dde812defe5bc49cf463ac1579ffeda5cbfd4 (diff) | |
download | lwn-2c3e47871d18f93b8bc2892fb41432111201356d.tar.gz lwn-2c3e47871d18f93b8bc2892fb41432111201356d.zip |
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>
Diffstat (limited to 'arch/powerpc/platforms/cell/spufs/file.c')
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/file.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/file.c b/arch/powerpc/platforms/cell/spufs/file.c index fee645b580cc..99c73066b82f 100644 --- a/arch/powerpc/platforms/cell/spufs/file.c +++ b/arch/powerpc/platforms/cell/spufs/file.c @@ -2645,7 +2645,6 @@ struct spufs_tree_descr spufs_dir_contents[] = { { "tid", &spufs_tid_fops, 0444, }, { "stat", &spufs_stat_fops, 0444, }, { "switch_log", &spufs_switch_log_fops, 0444 }, - { ".ctx", &spufs_ctx_fops, 0444, }, {}, }; @@ -2671,6 +2670,10 @@ struct spufs_tree_descr spufs_dir_nosched_contents[] = { { "object-id", &spufs_object_id_ops, 0666, }, { "tid", &spufs_tid_fops, 0444, }, { "stat", &spufs_stat_fops, 0444, }, + {}, +}; + +struct spufs_tree_descr spufs_dir_debug_contents[] = { { ".ctx", &spufs_ctx_fops, 0444, }, {}, }; |