fuse: folio conversions
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest10 patches 3 repliesIn review
- v310 patches 10 repliesSuperseded
- v211 patches 4 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 11 patches | 11 replies | Superseded |
Changes in v4 from the cover letter
- Added Joanne's Reviewed-by's.
- Renamed fuse_do_readpage to fuse_do_readfolio, and updated the comment to be more clear about why we were waiting on writeback, per Joanne's comments.
- Used filemap_get_folio instead of the __ variant in fuse_retrieve, per Joanne's comments.
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/10 | fuse: convert readahead to use foliosfs/ | +28 | 0 replies | |
| 2/10 | fuse: convert fuse_send_write_pages to use foliosfs/ | +7 | 0 replies | |
| 3/10 | fuse: convert fuse_fill_write_pages to use foliosfs/ | +15 | 0 replies | |
| 4/10 | fuse: convert fuse_page_mkwrite to use foliosfs/ | +15 | 0 replies | |
| 5/10 | fuse: use kiocb_modified in buffered write pathfs/ | +1 | 0 replies | |
| 6/10 | fuse: convert fuse_do_readpage to use foliosfs/ | +13 | 2 replies | |
| 7/10 | fuse: convert fuse_writepage_need_send to take a foliofs/ | +12 | 0 replies | |
| 8/10 | fuse: use the folio based vmstat helpersfs/ | +8 | 0 replies | |
| 9/10 | fuse: convert fuse_retrieve to use foliosfs/ | +4 | 0 replies | |
| 10/10 | fuse: convert fuse_notify_store to use foliosfs/ | +17 | 0 replies |
Reviews trailers per patch
8 of 10 patches have a Reviewed-by or Acked-by.
| Patch | Matthew Wilcox (Oracle) | Joanne Koong |
|---|---|---|
| 1/10 | ||
| 2/10 | R-b | R-b |
| 3/10 | R-b | |
| 4/10 | R-b | |
| 5/10 | ||
| 6/10 | R-b | |
| 7/10 | R-b | |
| 8/10 | R-b | |
| 9/10 | R-b | |
| 10/10 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v4 00/10] fuse: folio conversions
v3: https://lore.kernel.org/linux-fsdevel/[email protected]/
v2: https://lore.kernel.org/linux-fsdevel/[email protected]/
v1: https://lore.kernel.org/linux-fsdevel/[email protected]/
v3->v4:
- Added Joanne's Reviewed-by's.
- Renamed fuse_do_readpage to fuse_do_readfolio, and updated the comment to be more clear about why we were waiting on writeback, per Joanne's comments.
- Used filemap_get_folio instead of the __ variant in fuse_retrieve, per Joanne's comments.
v2->v3:
- Discussions with Willy at Plumbers helped clarify expectations around large folio usage, he had already converted the generic_perform_write to deal with large folios, so I dropped the iomap conversion since it's a bit overkill for FUSE's buffered use case.
- Rebased onto linus + fuse/for-next. I had to combine the branches because fuse/for-next is behind linus and there are fixes from Jann and Willy that aren't in the FUSE tree.
- Pushed a new GH branch since I had to combine everything
https://github.com/josefbacik/linux/tree/fuse-folio-prep
v1->v2:
- Fixed my fstests setup to use --nopassthrough so my code actually got tested this time.
- Fixed a bug where we double put on the folio in readpages, because previous behavior was the reference was maintained until the endio, but readahead_folio() drops the reference on the folio, so we need to not call put in the endio anymore.
- Fixed the IS_ERR inversion pointed out by Joanne.
- Made the various adjustments pointed out by Willy.
- Updated the Kconfig per hch's suggestion.
- Pushed to my GH tree since there are dependencies to make it easier to see what the code is https://github.com/josefbacik/linux/tree/fuse-iomap
--- Original email ---
Hello,
This is a prep series for my work to enable large folios on fuse. It has two dependencies, one is Joanne's writeback clean patches
https://lore.kernel.org/linux-fsdevel/[email protected]/
and an iomap patch to allow us to pass the file through the buffered write path
I've run these through an fstests run with passthrough_hp --direct-io, everything looks good.
The last remaining bit that needs to be made to use folios is the splice/pipe code, which I need to be a lot more careful about. The next step is to plumb through the ability to handle large folios. But this is a decent start and removes the bulk of FUSE's use of struct page, and is relatively safe and straightforward. Thanks,
Josef
Josef Bacik (10):
fuse: convert readahead to use folios
fuse: convert fuse_send_write_pages to use folios
fuse: convert fuse_fill_write_pages to use folios
fuse: convert fuse_page_mkwrite to use folios
fuse: use kiocb_modified in buffered write path
fuse: convert fuse_do_readpage to use folios
fuse: convert fuse_writepage_need_send to take a folio
fuse: use the folio based vmstat helpers
fuse: convert fuse_retrieve to use folios
fuse: convert fuse_notify_store to use folios
fs/fuse/dev.c | 38 +++++++----- fs/fuse/file.c | 164 +++++++++++++++++++++++++++++-------------------- 2 files changed, 117 insertions(+), 85 deletions(-)
Signature · 1 line
2.43.0