diff options
author | Brian Foster <bfoster@redhat.com> | 2025-05-06 09:41:16 -0400 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2025-05-09 12:35:30 +0200 |
commit | c4f9a1ba747dbf3b090948b528e0b408d4117137 (patch) | |
tree | e7a430798aea080667ef6d2ece327d7ef5fe0a5d /scripts/gdb/linux/modules.py | |
parent | 3ceb65b17676fd10e9347b665e1c1c8cfafdcd10 (diff) |
iomap: helper to trim pos/bytes to within folio
Several buffered write based iteration callbacks duplicate logic to
trim the current pos and length to within the current folio. Factor
this into a helper to make it easier to relocate closer to folio
lookup.
Signed-off-by: Brian Foster <bfoster@redhat.com>
Link: https://lore.kernel.org/20250506134118.911396-5-bfoster@redhat.com
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions