From: Andrew Morton <akpm@linux-foundation.org>
To: mm-commits@vger.kernel.org,ziy@nvidia.com,willy@infradead.org,wangkefeng.wang@huawei.com,shivankg@amd.com,shaggy@kernel.org,lkp@intel.com,jane.chu@oracle.com,donettom@linux.ibm.com,david@redhat.com,dan.carpenter@linaro.org,apopple@nvidia.com,akpm@linux-foundation.org,akpm@linux-foundation.org
Subject: [folded-merged] jfs-implement-migrate_folio-for-jfs_metapage_aops-fix-2.patch removed from -mm tree
Date: Mon, 12 May 2025 23:41:20 -0700 [thread overview]
Message-ID: <20250513064121.719D6C4CEED@smtp.kernel.org> (raw)
The quilt patch titled
Subject: jfs-implement-migrate_folio-for-jfs_metapage_aops-fix-2
has been removed from the -mm tree. Its filename was
jfs-implement-migrate_folio-for-jfs_metapage_aops-fix-2.patch
This patch was dropped because it was folded into jfs-implement-migrate_folio-for-jfs_metapage_aops.patch
------------------------------------------------------
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>
Cc: Dan Carpenter <dan.carpenter@linaro.org>
Cc: kernel test robot <lkp@intel.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
jfs-implement-migrate_folio-for-jfs_metapage_aops.patch
mm-hugetlbc-__unmap_hugepage_range-comment-cleanup.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
memcontrol-add-ksm_profit-in-cgroup-memoryksm_stat-fix.patch
mm-add-zblock-allocator-fix.patch
mm-add-zblock-allocator-fix-2.patch
mm-add-zblock-allocator-fix-3.patch
mm-zblock-avoid-failing-the-build-fix.patch
revert-x86-mm-remove-unused-__set_memory_prot-fix.patch
reply other threads:[~2025-05-13 6:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250513064121.719D6C4CEED@smtp.kernel.org \
--to=akpm@linux-foundation.org \
--cc=apopple@nvidia.com \
--cc=dan.carpenter@linaro.org \
--cc=david@redhat.com \
--cc=donettom@linux.ibm.com \
--cc=jane.chu@oracle.com \
--cc=lkp@intel.com \
--cc=mm-commits@vger.kernel.org \
--cc=shaggy@kernel.org \
--cc=shivankg@amd.com \
--cc=wangkefeng.wang@huawei.com \
--cc=willy@infradead.org \
--cc=ziy@nvidia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.