diff options
author | Joanne Koong <joannelkoong@gmail.com> | 2024-12-11 12:55:56 -0800 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2024-12-12 09:27:42 +0100 |
commit | 7a4f541873734f41f9645ec147cfae72ef3ffd00 (patch) | |
tree | a4ed04037b09c23b90d8fef54bb854c3a148150c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 40384c840ea1944d7c5a392e8975ed088ecf0b37 (diff) |
fuse: fix direct io folio offset and length calculation
For the direct io case, the pages from userspace may be part of a huge
folio, even if all folios in the page cache for fuse are small.
Fix the logic for calculating the offset and length of the folio for
the direct io case, which currently incorrectly assumes that all folios
encountered are one page size.
Fixes: 3b97c3652d91 ("fuse: convert direct io to use folios")
Signed-off-by: Joanne Koong <joannelkoong@gmail.com>
Reviewed-by: Jingbo Xu <jefflexu@linux.alibaba.com>
Reviewed-by: Bernd Schubert <bschubert@ddn.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions