UPSTREAM: filemap: add helper mapping_max_folio_size()
Add mapping_max_folio_size() to get the maximum folio size for this pagecache mapping. Fixes: 5d8edfb9 ("iomap: Copy larger chunks from userspace") Cc: stable@vger.kernel.org Reviewed-by:Darrick J. Wong <djwong@kernel.org> Signed-off-by:
Xu Yang <xu.yang_2@nxp.com> Link: https://lore.kernel.org/r/20240521114939.2541461-1-xu.yang_2@nxp.com Reviewed-by:
Ritesh Harjani (IBM) <ritesh.list@gmail.com> Reviewed-by:
Christoph Hellwig <hch@lst.de> Reviewed-by:
Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by:
Christian Brauner <brauner@kernel.org> Bug: 346830810 (cherry picked from commit 79c13745) Change-Id: I43205a2b8ac6f6e3af8a39c052c75cf7a7f96529 Signed-off-by:
Zhipeng Wang <zhipeng.wang_1@nxp.com>
Loading
Please sign in to comment