From: Chris Goldsworthy <cgoldswo@codeaurora.org>
To: tytso@mit.edu, adilger.kernel@dilger.ca,
linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Question regarding ext4_journalled_aops: lack of migrate_page
Date: Thu, 08 Oct 2020 23:42:16 -0700 [thread overview]
Message-ID: <4296a311893a9173e6ba8b84a8ae16f4@codeaurora.org> (raw)
Hi there,
ext4_aops and ext4_da_aops both have a migratepage callback, whereas
ext4_journalled_aops lacks such a callback. Why is this so? I’m asking
this due to the following: when a page containing EXT4 journal buffer
heads ends up being migrated, fallback_migrate_page() is used, which
eventually calls try_to_free_buffers(), which will call drop_buffers().
Drop buffers() can fail for a page if that page is on the LRU list (see
https://elixir.bootlin.com/linux/v5.8.14/source/fs/buffer.c#L3225).
Now, if buffer_migrate_page() was supplied as the migratepage callback
for the journaled aops, this wouldn’t be problem since we ignore the LRU
lists altogether.
Resolving this issue will benefit CMA allocations, which might have to
migrate movable pages that were allocated from a CMA region (the
assumption is that these pages can be migrated once the memory backing
these pages is needed).
Thanks,
Chris.
--
The Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora
Forum,
a Linux Foundation Collaborative Project
next reply other threads:[~2020-10-09 6:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-09 6:42 Chris Goldsworthy [this message]
2020-10-09 16:47 ` Question regarding ext4_journalled_aops: lack of migrate_page Chris Goldsworthy
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=4296a311893a9173e6ba8b84a8ae16f4@codeaurora.org \
--to=cgoldswo@codeaurora.org \
--cc=adilger.kernel@dilger.ca \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tytso@mit.edu \
/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 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).