summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2024-09-30 16:45:09 +0300
committerMiklos Szeredi <mszeredi@redhat.com>2024-10-25 18:05:49 +0300
commit3eab9d7bc2f4ae7f3f9c9c7852ff61600df79856 (patch)
tree4b093d9e7be8143a500ab0bedcf3d9d4ad69587f /scripts/gdb/linux/utils.py
parentaaa32429da09a9afa0f54a197733d757334ed169 (diff)
downloadlinux-3eab9d7bc2f4ae7f3f9c9c7852ff61600df79856.tar.xz
fuse: convert readahead to use folios
Currently we're using the __readahead_batch() helper which populates our fuse_args_pages->pages array with pages. Convert this to use the newer folio based pattern which is to call readahead_folio() to get the next folio in the read ahead batch. I've updated the code to use things like folio_size() and to take into account larger folio sizes, but this is purely to make that eventual work easier to do, we currently will not get large folios so this is more future proofing than actual support. [SzM: remove check for readahead_folio() won't return NULL (at least for now) so remove ugly assign in conditional.] Signed-off-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions