[GIT PULL] Folio fixes for 5.19

From: Matthew Wilcox
Date: Fri Jun 10 2022 - 15:22:13 EST


The following changes since commit 3d9f55c57bc3659f986acc421eac431ff6edcc83:

Merge tag 'fs_for_v5.19-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs (2022-06-09 12:26:05 -0700)

are available in the Git repository at:

git://git.infradead.org/users/willy/pagecache.git tags/folio-5.19a

for you to fetch changes up to 334f6f53abcf57782bd2fe81da1cbd893e4ef05c:

mm: Add kernel-doc for folio->mlock_count (2022-06-09 16:24:25 -0400)

----------------------------------------------------------------
Four folio-related fixes for 5.19:

- Don't release a folio while it's still locked

- Fix a use-after-free after dropping the mmap_lock

- Fix a memory leak when splitting a page

- Fix a kernel-doc warning for struct folio

----------------------------------------------------------------
Matthew Wilcox (Oracle) (4):
filemap: Don't release a locked folio
filemap: Cache the value of vm_flags
mm/huge_memory: Fix xarray node memory leak
mm: Add kernel-doc for folio->mlock_count

include/linux/mm_types.h | 5 +++++
include/linux/xarray.h | 1 +
lib/xarray.c | 5 +++--
mm/filemap.c | 9 +++++----
mm/huge_memory.c | 3 +--
mm/readahead.c | 2 ++
6 files changed, 17 insertions(+), 8 deletions(-)