]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ecryptfs: Use a folio in ecryptfs_write_begin()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 11 Jul 2024 15:42:46 +0000 (11:42 -0400)
committerChristian Brauner <brauner@kernel.org>
Wed, 7 Aug 2024 09:32:00 +0000 (11:32 +0200)
commit6a09084cd4e67ab2e454cf6da6737383a7c6d41c
tree548345e1687a5df551394b35e75c4ea83f5a870b
parentefe2f7a4132d8c399f9238a320df5edb0d62fd48
ecryptfs: Use a folio in ecryptfs_write_begin()

Use __filemap_get_folio() instead of grab_cache_page_write_begin()
and use the folio throughout.  No attempt is made here to support
large folios, simply converting this function to use folio APIs is
the goal.  Saves many hidden calls to compound_head().

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/ecryptfs/mmap.c