diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2023-01-26 21:15:52 +0100 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-02-03 07:33:34 +0100 |
commit | 00cdf76012ab78b225345e8cf77d5391b4680b45 (patch) | |
tree | e000b76c5cc12c8885dd0b8edf7d71a971bd9ef2 /fs/orangefs | |
parent | block: remove ->rw_page (diff) | |
download | linux-00cdf76012ab78b225345e8cf77d5391b4680b45.tar.xz linux-00cdf76012ab78b225345e8cf77d5391b4680b45.zip |
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.
[akpm@linux-foundation.org: fix typo in comment]
Link: https://lkml.kernel.org/r/20230126201552.1681588-1-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: "Fabio M. De Francesco" <fmdefrancesco@gmail.com>
Cc: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'fs/orangefs')
0 files changed, 0 insertions, 0 deletions