diff options
| author | Matthew Wilcox (Oracle) <[email protected]> | 2023-01-26 20:15:52 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-02-02 22:33:34 -0800 |
| commit | 00cdf76012ab78b225345e8cf77d5391b4680b45 (patch) | |
| tree | e000b76c5cc12c8885dd0b8edf7d71a971bd9ef2 /tools/perf/scripts/python | |
| parent | 3222d8c2a7f888bf38b845b125e9470b12108a4d (diff) | |
mm: add memcpy_from_file_folio()
This is the equivalent of memcpy_from_page(). It differs in that it takes
the position in a file instead of offset in a folio, it accepts the total
number of bytes to be copied (instead of the number of bytes to be copied
from this folio) and it returns how many bytes were copied from the folio,
rather than making the caller calculate that and then checking if the
caller got it right.
[[email protected]: fix typo in comment]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Matthew Wilcox (Oracle) <[email protected]>
Cc: "Fabio M. De Francesco" <[email protected]>
Cc: Ira Weiny <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions