diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2008-06-29 22:17:28 -0400 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2008-07-08 20:13:40 -0400 |
commit | 23d893f51cde7013e4c29094da2237cce4f20035 (patch) | |
tree | 8501d50703820178ede0ea6a96796589c2464c5d /arch/powerpc/platforms/cell/spufs/file.c | |
parent | 87ff6090bfe416c71730654ab53cd4ecffdd675e (diff) |
powerpc/spufs: allow spufs files to specify sizes
Currently, spufs never specifies the i_size for the files in context
directories, so stat() always reports 0-byte files.
This change adds allows the spufs_dir_(nosched_)contents arrays to
specify a file size. This allows stat() to report correct file sizes,
and makes SEEK_END work.
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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/file.c b/arch/powerpc/platforms/cell/spufs/file.c index d0a497d9140b..9533a8ad33f2 100644 --- a/arch/powerpc/platforms/cell/spufs/file.c +++ b/arch/powerpc/platforms/cell/spufs/file.c | |||
@@ -2607,7 +2607,7 @@ static const struct file_operations spufs_ctx_fops = { | |||
2607 | .release = single_release, | 2607 | .release = single_release, |
2608 | }; | 2608 | }; |
2609 | 2609 | ||
2610 | struct tree_descr spufs_dir_contents[] = { | 2610 | struct spufs_tree_descr spufs_dir_contents[] = { |
2611 | { "capabilities", &spufs_caps_fops, 0444, }, | 2611 | { "capabilities", &spufs_caps_fops, 0444, }, |
2612 | { "mem", &spufs_mem_fops, 0666, }, | 2612 | { "mem", &spufs_mem_fops, 0666, }, |
2613 | { "regs", &spufs_regs_fops, 0666, }, | 2613 | { "regs", &spufs_regs_fops, 0666, }, |
@@ -2647,7 +2647,7 @@ struct tree_descr spufs_dir_contents[] = { | |||
2647 | {}, | 2647 | {}, |
2648 | }; | 2648 | }; |
2649 | 2649 | ||
2650 | struct tree_descr spufs_dir_nosched_contents[] = { | 2650 | struct spufs_tree_descr spufs_dir_nosched_contents[] = { |
2651 | { "capabilities", &spufs_caps_fops, 0444, }, | 2651 | { "capabilities", &spufs_caps_fops, 0444, }, |
2652 | { "mem", &spufs_mem_fops, 0666, }, | 2652 | { "mem", &spufs_mem_fops, 0666, }, |
2653 | { "mbox", &spufs_mbox_fops, 0444, }, | 2653 | { "mbox", &spufs_mbox_fops, 0444, }, |