On Mon, 07 Apr 2025 17:30:30 -0700, Darrick J. Wong wrote: > Prior to commit e614a00117bc2d, xmbuf_map_backing_mem relied on > folio_file_page to return the base page for the xmbuf's loff_t in the > xfile, and set b_addr to the page_address of that base page. > > Now that folio_file_page has been removed from xmbuf_map_backing_mem, we > always set b_addr to the folio_address of the folio. This is correct > for the situation where the folio size matches the buffer size, but it's > totally wrong if tmpfs uses large folios. We need to use > offset_in_folio here. > > [...] Applied to for-next, thanks! [1/1] xfs: compute buffer address correctly in xmbuf_map_backing_mem commit: a37b3b9c3cc595521c7f9d9b2b0b2ad367bf9c98 Best regards, -- Carlos Maiolino <cem@xxxxxxxxxx>