Re: [PATCH v2] sparc: huge_ptep_set_* functions need to call set_huge_pte_at()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Dave Kleikamp <dave.kleikamp@xxxxxxxxxx>
Date: Mon, 17 Dec 2012 11:52:47 -0600

> On 12/16/2012 10:52 AM, David Miller wrote:
>> From: Dave Kleikamp <dave.kleikamp@xxxxxxxxxx>
>> Date: Fri, 14 Dec 2012 15:02:00 -0600
>> 
>>>  static inline int huge_ptep_set_access_flags(struct vm_area_struct *vma,
>>>  					     unsigned long addr, pte_t *ptep,
>>>  					     pte_t pte, int dirty)
>>>  {
>>> -	return ptep_set_access_flags(vma, addr, ptep, pte, dirty);
>>> +	int changed = !pte_same(*ptep, pte);
>>> +	if (changed)
>>> +		set_huge_pte_at(vma->vm_mm, addr, ptep, pte);
>>> +	return changed;
>>>  }
>>>  
>>>  static inline pte_t huge_ptep_get(pte_t *ptep)
>> 
>> This lacks the TLB flush after setting the pte, which is really
>> needed.
> 
> Modifying the huge pte's requires that all the underlying pte's be
> modified.
> 
> Version 2: added missing flush_tlb_page()
> 
> Signed-off-by: Dave Kleikamp <dave.kleikamp@xxxxxxxxxx>

Please don't submit new versions of patches as a reply like this.

Always submit new patches as fresh list postings, that way the
maintainer doesn't have to edit out all of the unnecessary
reply verbiage from the resulting commit message during checkin.
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux