From: Kefeng Wang <wangkefeng.wang@huawei.com>
To: Matthew Wilcox <willy@infradead.org>
Cc: Amir Goldstein <amir73il@gmail.com>,
Lorenzo Stoakes <lorenzo.stoakes@oracle.com>,
Jinjiang Tu <tujinjiang@huawei.com>, <miklos@szeredi.hu>,
<akpm@linux-foundation.org>, <vbabka@suse.cz>, <jannh@google.com>,
<linux-mm@kvack.org>, <linux-unionfs@vger.kernel.org>,
<sunnanyong@huawei.com>, <yi.zhang@huawei.com>
Subject: Re: [PATCH -next] ovl: respect underlying filesystem's get_unmapped_area()
Date: Sat, 14 Dec 2024 15:58:30 +0800 [thread overview]
Message-ID: <b9e1736f-aa1a-4661-874e-2ced295c7195@huawei.com> (raw)
In-Reply-To: <Z1w9_xGpHr04QtEw@casper.infradead.org>
On 2024/12/13 22:00, Matthew Wilcox wrote:
> On Fri, Dec 13, 2024 at 03:49:53PM +0800, Kefeng Wang wrote:
>>
>>
>> On 2024/12/13 12:25, Matthew Wilcox wrote:
>>> On Wed, Dec 11, 2024 at 10:43:46AM +0100, Amir Goldstein wrote:
>>>> I think this patch is fine as is.
>>>
>>> This patch is complete crap. The test-case is broken. NAK to all of
>>> this.
>>>
>> Hi Matthew, regardless of the test case, the original issue is the
>> ovl don't respect underlying fs' get_unmapped_area(), the lower fs may
>> have own rules for vma alignment(own get_unmapped_area callback),
>> thp_get_unmapped_area() is one case, what's your option/suggestion about
>
> No, filesystems don't "have their own rules" for get_unmapped_area.
> get_unmapped_area is for device drivers.
Commit 74d2fad1334d ("thp, dax: add thp_get_unmapped_area for pmd
mappings") to enable PMD mappings as a FSDAX filesystem, and with
commit 1854bc6e2420 ("mm/readahead: Align file mappings for non-DAX")
to enable THPs for mmapped files too, also other filesystem, eg,
tmpfs provide a shmem_get_unmapped_area to decide the mapping address,
see commit c01d5b300774 ("shmem: get_unmapped_area align huge page"),
that is what I think the filesystem have own rules to get the mapping
address, correct me if I misunderstood, thanks.
next prev parent reply other threads:[~2024-12-14 7:58 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-05 14:30 Jinjiang Tu
2024-12-05 15:04 ` Lorenzo Stoakes
2024-12-05 15:12 ` Amir Goldstein
2024-12-05 15:24 ` Lorenzo Stoakes
2024-12-06 3:35 ` Jinjiang Tu
2024-12-06 13:52 ` Matthew Wilcox
2024-12-10 17:36 ` Jann Horn
2024-12-06 3:35 ` Jinjiang Tu
2024-12-06 9:25 ` Lorenzo Stoakes
2024-12-06 10:45 ` Kefeng Wang
2024-12-06 11:53 ` Lorenzo Stoakes
2024-12-10 7:09 ` Kefeng Wang
2024-12-06 12:58 ` Amir Goldstein
2024-12-10 7:19 ` Kefeng Wang
2024-12-11 9:43 ` Amir Goldstein
2024-12-11 15:01 ` Kefeng Wang
2024-12-13 1:51 ` Jinjiang Tu
2024-12-13 4:25 ` Matthew Wilcox
2024-12-13 7:49 ` Kefeng Wang
2024-12-13 14:00 ` Matthew Wilcox
2024-12-14 7:58 ` Kefeng Wang [this message]
2024-12-05 21:21 ` kernel test robot
2024-12-06 13:58 ` Matthew Wilcox
2024-12-09 6:43 ` Jinjiang Tu
2024-12-09 13:33 ` Matthew Wilcox
2024-12-10 7:13 ` Jinjiang Tu
2024-12-10 17:58 ` Matthew Wilcox
2024-12-11 2:21 ` Zhang Yi
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=b9e1736f-aa1a-4661-874e-2ced295c7195@huawei.com \
--to=wangkefeng.wang@huawei.com \
--cc=akpm@linux-foundation.org \
--cc=amir73il@gmail.com \
--cc=jannh@google.com \
--cc=linux-mm@kvack.org \
--cc=linux-unionfs@vger.kernel.org \
--cc=lorenzo.stoakes@oracle.com \
--cc=miklos@szeredi.hu \
--cc=sunnanyong@huawei.com \
--cc=tujinjiang@huawei.com \
--cc=vbabka@suse.cz \
--cc=willy@infradead.org \
--cc=yi.zhang@huawei.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox