diff options
| author | Christoph Hellwig <[email protected]> | 2020-05-05 10:12:52 +0000 |
|---|---|---|
| committer | Al Viro <[email protected]> | 2020-05-05 20:46:09 +0000 |
| commit | 5456ffdee666c66e27ccc1006f9afe83ad55559f (patch) | |
| tree | 0c3d7f456c11ca8486cba4f0abdeee85b0d97853 /fs/jbd2/commit.c | |
| parent | powerpc/spufs: stop using access_ok (diff) | |
| download | kernel-5456ffdee666c66e27ccc1006f9afe83ad55559f.tar.gz kernel-5456ffdee666c66e27ccc1006f9afe83ad55559f.zip | |
powerpc/spufs: simplify spufs core dumping
Replace the coredump ->read method with a ->dump method that must call
dump_emit itself. That way we avoid a buffer allocation an messing with
set_fs() to call into code that is intended to deal with user buffers.
For the ->get case we can now use a small on-stack buffer and avoid
memory allocations as well.
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Arnd Bergmann <[email protected]>
Reviewed-by: Jeremy Kerr <[email protected]>
Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions
