On Thu, Sep 17, 2020 at 04:30:21AM +0100, Matthew Wilcox wrote: > I was pointed at the patches posted this week for sub-page support in > btrfs, and I thought it might be a good idea to mention that THP support > is going to hit many of the same issues as sub-PAGE_SIZE blocks, so if > you're thinking about sub-page block sizes, it might be a good idea to > add THP support at the same time, or at least be aware of it when you're > working on those patches to make THP work in the future. I think the right path is to switch btrfs to use iomap for buffered I/O as well and piggy back on all the work you've done..