linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* UBIFS and page migration (take 3)
@ 2016-05-11 13:53 Richard Weinberger
  2016-05-11 13:53 ` [PATCH 1/2] mm: Export migrate_page_move_mapping and migrate_page_copy Richard Weinberger
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Richard Weinberger @ 2016-05-11 13:53 UTC (permalink / raw)
  To: linux-fsdevel
  Cc: linux-mtd, linux-mm, linux-kernel, boris.brezillon, maxime.ripard,
	david, david, dedekind1, alex, akpm, sasha.levin, iamjoonsoo.kim,
	rvaswani, tony.luck, shailendra.capricorn, kirill.shutemov, hch,
	hughd, mgorman, vbabka

During page migrations UBIFS gets confused. We triggered this by using CMA
on two different targets.
It turned out that fallback_migrate_page() is not suitable for UBIFS as it
does not copy the PagePrivate flag. Non-trivial block based filesystems
do not notice since they can use buffer_migrate_page().
UBIFS is using this flag among with PageChecked to account free space.
One possible solution is implementing a ->migratepage() function in UBIFS
which does more or less the same as fallback_migrate_page() but also
copies PagePrivate. I'm not at all sure whether this is the way to go.
IMHO either page migration should not happen if ->migratepage() is not implement
or fallback_migrate_page() has to work for all filesystems.

Comments? Flames? :-)

Thanks,
//richard

[PATCH 1/2] mm: Export migrate_page_move_mapping and
[PATCH 2/2] UBIFS: Implement ->migratepage()

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 15+ messages in thread
* UBIFS and page migration (take 2)
@ 2016-03-31 21:58 Richard Weinberger
  2016-03-31 21:58 ` [PATCH 2/2] UBIFS: Implement ->migratepage() Richard Weinberger
  0 siblings, 1 reply; 15+ messages in thread
From: Richard Weinberger @ 2016-03-31 21:58 UTC (permalink / raw)
  To: linux-fsdevel
  Cc: linux-mtd, linux-mm, linux-kernel, boris.brezillon, maxime.ripard,
	david, david, dedekind1, alex, akpm, sasha.levin, iamjoonsoo.kim,
	rvaswani, tony.luck, shailendra.capricorn, kirill.shutemov, hch,
	hughd, mgorman, vbabka

During page migrations UBIFS gets confused. We triggered this by using CMA
on two different targets.
It turned out that fallback_migrate_page() is not suitable for UBIFS as it
does not copy the PagePrivate flag.
UBIFS is using this flag among with PageChecked to account free space.
One possible solution is implementing a ->migratepage() function in UBIFS
which does more or less the same as fallback_migrate_page() but also
copies PagePrivate. I'm not at all sure whether this is they way to go.
IMHO either page migration should not happen if ->migratepage() is not implement
or fallback_migrate_page() has to work for all filesystems.

Comments? Flames? :-)

Thanks,
//richard

[PATCH 1/2] mm: Export migrate_page_move_mapping and
[PATCH 2/2] UBIFS: Implement ->migratepage()

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2016-05-18  9:03 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-11 13:53 UBIFS and page migration (take 3) Richard Weinberger
2016-05-11 13:53 ` [PATCH 1/2] mm: Export migrate_page_move_mapping and migrate_page_copy Richard Weinberger
2016-05-11 13:53 ` [PATCH 2/2] UBIFS: Implement ->migratepage() Richard Weinberger
2016-05-12 10:47   ` Richard Weinberger
2016-05-12 11:49 ` UBIFS and page migration (take 3) Christoph Hellwig
2016-05-16 12:44   ` Richard Weinberger
2016-05-16 13:03     ` Vlastimil Babka
2016-05-17  9:12       ` Christoph Hellwig
2016-05-17 11:27       ` Richard Weinberger
2016-05-18  9:03         ` Richard Weinberger
2016-05-17  9:11     ` Christoph Hellwig
  -- strict thread matches above, loose matches on Subject: below --
2016-03-31 21:58 UBIFS and page migration (take 2) Richard Weinberger
2016-03-31 21:58 ` [PATCH 2/2] UBIFS: Implement ->migratepage() Richard Weinberger
2016-04-01 10:14   ` Vlastimil Babka
2016-04-01 11:21     ` Richard Weinberger
2016-04-03  0:13   ` kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).