diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2007-09-19 04:38:12 (GMT) |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-09-19 05:12:19 (GMT) |
commit | 7af1443a9d319132087e1e9a3984b94c6998835c (patch) | |
tree | a38fbc03da6201e89a9e850115433df724eba7a4 /arch/powerpc/platforms/cell/spufs/spufs.h | |
parent | e55014923e65e4ee8e477a1212381cca0125f3aa (diff) | |
download | linux-fsl-qoriq-7af1443a9d319132087e1e9a3984b94c6998835c.tar.xz |
[POWERPC] spufs: Handle errors in SPU coredump code, and support coredump to a pipe
Rework spufs_coredump_extra_notes_write() to check for and return errors.
If we're coredumping to a pipe we can't trust file->f_pos, we need to
maintain the foffset value passed to us. The cleanest way to do this is
to have the low level write routine increment foffset when we've
successfully written.
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/cell/spufs/spufs.h')
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/spufs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/spufs.h b/arch/powerpc/platforms/cell/spufs/spufs.h index c7b4e03..ca47b99 100644 --- a/arch/powerpc/platforms/cell/spufs/spufs.h +++ b/arch/powerpc/platforms/cell/spufs/spufs.h @@ -206,7 +206,7 @@ long spufs_create(struct nameidata *nd, unsigned int flags, mode_t mode, struct file *filp); /* ELF coredump callbacks for writing SPU ELF notes */ extern int spufs_coredump_extra_notes_size(void); -extern void spufs_coredump_extra_notes_write(struct file *file); +extern int spufs_coredump_extra_notes_write(struct file *file, loff_t *foffset); extern const struct file_operations spufs_context_fops; |