On 6/15/23 08:48, Christoph Hellwig wrote:
Hmm. Willy told me that ->index is free to use if you're not dealing with page cache pages (brd does the same thing).The md driver allocates pages for storing the bitmap file data, which are not page cache pages, and then stores the page granularity file offset in page->index, which is a field that isn't really valid except for page cache pages.
Cheers, Hannes