]> err.no Git - linux-2.6/commit
powerpc/spufs: allow spufs files to specify sizes
authorJeremy Kerr <jk@ozlabs.org>
Mon, 30 Jun 2008 02:17:28 +0000 (12:17 +1000)
committerJeremy Kerr <jk@ozlabs.org>
Wed, 9 Jul 2008 00:13:40 +0000 (10:13 +1000)
commit23d893f51cde7013e4c29094da2237cce4f20035
tree8501d50703820178ede0ea6a96796589c2464c5d
parent87ff6090bfe416c71730654ab53cd4ecffdd675e
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>
arch/powerpc/platforms/cell/spufs/file.c
arch/powerpc/platforms/cell/spufs/inode.c
arch/powerpc/platforms/cell/spufs/spufs.h