* + jfs-implement-migrate_folio-for-jfs_metapage_aops-fix-2.patch added to mm-unstable branch
@ 2025-05-01 23:00 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2025-05-01 23:00 UTC (permalink / raw)
To: mm-commits, ziy, willy, wangkefeng.wang, shivankg, shaggy,
jane.chu, donettom, david, apopple, akpm, akpm
The patch titled
Subject: jfs-implement-migrate_folio-for-jfs_metapage_aops-fix-2
has been added to the -mm mm-unstable branch. Its filename is
jfs-implement-migrate_folio-for-jfs_metapage_aops-fix-2.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/jfs-implement-migrate_folio-for-jfs_metapage_aops-fix-2.patch
This patch will later appear in the mm-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next via the mm-everything
branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there every 2-3 working days
------------------------------------------------------
From: Andrew Morton <akpm@linux-foundation.org>
Subject: jfs-implement-migrate_folio-for-jfs_metapage_aops-fix-2
Date: Thu May 1 03:52:07 PM PDT 2025
fix build by making fs/jfs/jfs_metapage.c change dependent upon
CONFIG_MIGRATION
Cc: Alistair Popple <apopple@nvidia.com>
Cc: Dave Kleikamp <shaggy@kernel.org>
Cc: David Hildenbrand <david@redhat.com>
Cc: Donet Tom <donettom@linux.ibm.com>
Cc: Jane Chu <jane.chu@oracle.com>
Cc: Kefeng Wang <wangkefeng.wang@huawei.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Shivank Garg <shivankg@amd.com>
Cc: Zi Yan <ziy@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
fs/jfs/jfs_metapage.c | 24 ++++++++++++++++++------
1 file changed, 18 insertions(+), 6 deletions(-)
--- a/fs/jfs/jfs_metapage.c~jfs-implement-migrate_folio-for-jfs_metapage_aops-fix-2
+++ a/fs/jfs/jfs_metapage.c
@@ -152,8 +152,10 @@ static inline void dec_io(struct folio *
handler(folio, anchor->status);
}
-static int __metapage_migrate_folio(struct address_space *mapping, struct folio *dst,
- struct folio *src, enum migrate_mode mode)
+#ifdef CONFIG_MIGRATION
+static int __metapage_migrate_folio(struct address_space *mapping,
+ struct folio *dst, struct folio *src,
+ enum migrate_mode mode)
{
struct meta_anchor *src_anchor = src->private;
struct metapage *mps[MPS_PER_PAGE] = {0};
@@ -199,8 +201,10 @@ static int __metapage_migrate_folio(stru
return MIGRATEPAGE_SUCCESS;
}
+#endif /* CONFIG_MIGRATION */
#else
+
static inline struct metapage *folio_to_mp(struct folio *folio, int offset)
{
return folio->private;
@@ -224,8 +228,10 @@ static inline void remove_metapage(struc
#define inc_io(folio) do {} while(0)
#define dec_io(folio, status, handler) handler(folio, status)
-static int __metapage_migrate_folio(struct address_space *mapping, struct folio *dst,
- struct folio *src, enum migrate_mode mode)
+#ifdef CONFIG_MIGRATION
+static int __metapage_migrate_folio(struct address_space *mapping,
+ struct folio *dst, struct folio *src,
+ enum migrate_mode mode)
{
struct metapage *mp;
int page_offset;
@@ -249,6 +255,7 @@ static int __metapage_migrate_folio(stru
return MIGRATEPAGE_SUCCESS;
}
+#endif /* CONFIG_MIGRATION */
#endif
@@ -629,11 +636,13 @@ static bool metapage_release_folio(struc
return ret;
}
+#ifdef CONFIG_MIGRATION
/*
* metapage_migrate_folio - Migration function for JFS metapages
*/
-static int metapage_migrate_folio(struct address_space *mapping, struct folio *dst,
- struct folio *src, enum migrate_mode mode)
+static int metapage_migrate_folio(struct address_space *mapping,
+ struct folio *dst, struct folio *src,
+ enum migrate_mode mode)
{
int expected_count;
@@ -646,6 +655,9 @@ static int metapage_migrate_folio(struct
return -EAGAIN;
return __metapage_migrate_folio(mapping, dst, src, mode);
}
+#else
+#define metapage_migrate_folio NULL
+#endif /* CONFIG_MIGRATION */
static void metapage_invalidate_folio(struct folio *folio, size_t offset,
size_t length)
_
Patches currently in -mm which might be from akpm@linux-foundation.org are
x86-disable-image-size-check-for-test-builds-fix.patch
x86-disable-image-size-check-for-test-builds-fix-fix.patch
mm-debug-fix-parameter-passed-to-page_mapcount_is_type-fix.patch
vmalloc-switch-to-for_each_vmap_node-helper-fix.patch
mm-selftests-add-a-test-to-verify-mmap_changing-race-with-eagain-checkpatch-fixes.patch
jfs-implement-migrate_folio-for-jfs_metapage_aops-fix-2.patch
mm-add-zblock-allocator-fix.patch
mm-zblock-avoid-failing-the-build-fix.patch
mm-establish-mm-vma_execc-for-shared-exec-mm-vma-functionality-fix.patch
mm-perform-vma-allocation-freeing-duplication-in-mm-fix.patch
filemap-do-not-use-folio_contains-for-swap-cache-folios-fix.patch
compiler_typesh-fix-unused-variable-in-__compiletime_assert-fix.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-05-01 23:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-01 23:00 + jfs-implement-migrate_folio-for-jfs_metapage_aops-fix-2.patch added to mm-unstable branch Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.