]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ecryptfs: Use a folio throughout ecryptfs_read_folio()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 25 Oct 2024 19:08:12 +0000 (20:08 +0100)
committerChristian Brauner <brauner@kernel.org>
Tue, 5 Nov 2024 16:19:58 +0000 (17:19 +0100)
commit064fe6b4752c41cc4d00d1532f65ef98acd107a2
tree6026c6ef882d3ad5e291b41f63a84b91463d4142
parent807a11dab9dc42dc999ece92d1277b3da37ecfab
ecryptfs: Use a folio throughout ecryptfs_read_folio()

Remove the conversion to a struct page.  Removes a few hidden calls to
compound_head().  Use 'err' instead of 'rc' for clarity.

Also remove the unnecessary call to ClearPageUptodate(); the uptodate
flag is already clear if this function is being called.  That lets us
switch to folio_end_read() which does one atomic flag operation instead
of two.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Link: https://lore.kernel.org/r/20241025190822.1319162-3-willy@infradead.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/ecryptfs/mmap.c