> On Jul 31, 2019, at 9:16 AM, Oleg Nesterov <o...@redhat.com> wrote:
> 
> On 07/28, Song Liu wrote:
>> 
>> @@ -525,6 +527,9 @@ int uprobe_write_opcode(struct arch_uprobe *auprobe, 
>> struct mm_struct *mm,
>> 
>>                              /* dec_mm_counter for old_page */
>>                              dec_mm_counter(mm, MM_ANONPAGES);
>> +
>> +                            if (PageCompound(orig_page))
>> +                                    orig_page_huge = true;
> 
> I am wondering how find_get_page() can return a PageCompound() page...
> 
> IIUC, this is only possible if shmem_file(), right?

Yes, this is the case at the moment. We will be able to do it for other
file systems when this set gets in: 

        https://lkml.org/lkml/2019/6/24/1531

Thanks,
Song

Reply via email to