]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/truncate: make sure folio2 is large and has the same mapping after lock
authorZi Yan <ziy@nvidia.com>
Sun, 2 Mar 2025 03:34:24 +0000 (22:34 -0500)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 4 Mar 2025 05:50:18 +0000 (21:50 -0800)
commitc430eaa3591dede56a48f70af36080cb951a5927
tree7db4f7d9f809023982dc62644727f9e880e18bdf
parentd0e76194cd3c38e1b9ac821ad12b8531bbf78144
mm/truncate: make sure folio2 is large and has the same mapping after lock

It is possible that folio2 no longer belongs to the original mapping.

Link: https://lkml.kernel.org/r/56EBE3B6-99EA-470E-B2B3-92C9C13032DF@nvidia.com
Signed-off-by: Zi Yan <ziy@nvidia.com>
Cc: Baolin Wang <baolin.wang@linux.alibaba.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: John Hubbard <jhubbard@nvidia.com>
Cc: Kairui Song <kasong@tencent.com>
Cc: Kefeng Wang <wangkefeng.wang@huawei.com>
Cc: Kirill A. Shuemov <kirill.shutemov@linux.intel.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Miaohe Lin <linmiaohe@huawei.com>
Cc: Ryan Roberts <ryan.roberts@arm.com>
Cc: Yang Shi <yang@os.amperecomputing.com>
Cc: Yu Zhao <yuzhao@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/truncate.c