aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux
diff options
context:
space:
mode:
authorAl Viro <[email protected]>2022-06-14 13:53:53 -0400
committerAl Viro <[email protected]>2022-08-08 22:37:17 -0400
commit8fad7767edcfd3f93e0d9985cb2dc1db270b8719 (patch)
tree87018b8809edaa081c98a00fd11a252b4ec685b9 /scripts/gdb/linux
parent47b7fcae419dc940e3fb8e58088a5b80ad813bbf (diff)
ITER_PIPE: allocate buffers as we go in copy-to-pipe primitives
New helper: append_pipe(). Extends the last buffer if possible, allocates a new one otherwise. Returns page and offset in it on success, NULL on failure. iov_iter is advanced past the data we've got. Use that instead of push_pipe() in copy-to-pipe primitives; they get simpler that way. Handling of short copy (in "mc" one) is done simply by iov_iter_revert() - iov_iter is in consistent state after that one, so we can use that. [Fix for braino caught by Liu Xinpeng <[email protected]> folded in] [another braino fix, this time in copy_pipe_to_iter() and pipe_zero(); caught by testcase from Hugh Dickins] Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'scripts/gdb/linux')
0 files changed, 0 insertions, 0 deletions