Simon Jeons wrote:Hi Kirill,While we work with huge page we only alter flags (like mlocked or
On 03/18/2013 07:19 PM, Kirill A. Shutemov wrote:
Simon Jeons wrote:I always see up-to-date state, could you conclude to me which state canOn 03/18/2013 12:03 PM, Simon Jeons wrote:Not set, but copied from head page. Head page represents up-to-date sateHi Kirill,
On 03/15/2013 01:50 AM, Kirill A. Shutemov wrote:
From: "Kirill A. Shutemov" <kirill.shutemov@xxxxxxxxxxxxxxx>One offline question.
Here's the second version of the patchset.
The intend of the work is get code ready to enable transparent huge page
cache for the most simple fs -- ramfs.
We have read()/write()/mmap() functionality now. Still plenty work
ahead.
Why set PG_mlocked to page_tail which be splited in function
__split_huge_page_refcount?
of compound page, we need to copy it to all tail pages on split.
be treated as up-to-date? :-)
uptodate) of head page, but not tail, so we have to copy flags to all tail
pages on split. We also need to distribute _count and _mapcount properly.
Just read the code.
Comment just before pmdp_invalidate() in __split_huge_page_map() is fairlySince pmd is populated by page table and new flag why needAlso why can't find where _PAGE_SPLITTING and _PAGE_PSE flags areThe pmd is invalidated and replaced with reference to page table at the end
cleared in split_huge_page path?
of __split_huge_page_map.
invalidated(clear present flag) before it?
informative.