linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm: Fix out-of-date comments which refers non-existent functions
@ 2011-02-09 14:42 Ryota Ozaki
  2011-02-09 23:58 ` KAMEZAWA Hiroyuki
  0 siblings, 1 reply; 6+ messages in thread
From: Ryota Ozaki @ 2011-02-09 14:42 UTC (permalink / raw)
  To: linux-mm
  Cc: Andrew Morton, Rik van Riel, Andrea Arcangeli, KAMEZAWA Hiroyuki,
	Hugh Dickins, linux-kernel

From: Ryota Ozaki <ozaki.ryota@gmail.com>

do_file_page and do_no_page don't exist anymore, but some comments
still refers them. The patch fixes them by replacing them with
existing ones.

Signed-off-by: Ryota Ozaki <ozaki.ryota@gmail.com>
---
 mm/memory.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

I'm not familiar with the codes very much, so the fix may be wrong.

diff --git a/mm/memory.c b/mm/memory.c
index 31250fa..3fbf32a 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -2115,10 +2115,10 @@ EXPORT_SYMBOL_GPL(apply_to_page_range);
  * handle_pte_fault chooses page fault handler according to an entry
  * which was read non-atomically.  Before making any commitment, on
  * those architectures or configurations (e.g. i386 with PAE) which
- * might give a mix of unmatched parts, do_swap_page and do_file_page
+ * might give a mix of unmatched parts, do_swap_page and do_nonlinear_fault
  * must check under lock before unmapping the pte and proceeding
  * (but do_wp_page is only called after already making such a check;
- * and do_anonymous_page and do_no_page can safely check later on).
+ * and do_anonymous_page can safely check later on).
  */
 static inline int pte_unmap_same(struct mm_struct *mm, pmd_t *pmd,
 				pte_t *page_table, pte_t orig_pte)
@@ -2316,7 +2316,7 @@ reuse:
 		 * bit after it clear all dirty ptes, but before a racing
 		 * do_wp_page installs a dirty pte.
 		 *
-		 * do_no_page is protected similarly.
+		 * __do_fault is protected similarly.
 		 */
 		if (!page_mkwrite) {
 			wait_on_page_locked(dirty_page);
-- 
1.7.2.3

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] mm: Fix out-of-date comments which refers non-existent functions
  2011-02-09 14:42 [PATCH] mm: Fix out-of-date comments which refers non-existent functions Ryota Ozaki
@ 2011-02-09 23:58 ` KAMEZAWA Hiroyuki
  2011-02-10  3:58   ` Ryota Ozaki
  0 siblings, 1 reply; 6+ messages in thread
From: KAMEZAWA Hiroyuki @ 2011-02-09 23:58 UTC (permalink / raw)
  To: Ryota Ozaki
  Cc: linux-mm, Andrew Morton, Rik van Riel, Andrea Arcangeli,
	Hugh Dickins, linux-kernel

On Wed,  9 Feb 2011 23:42:17 +0900
Ryota Ozaki <ozaki.ryota@gmail.com> wrote:

> From: Ryota Ozaki <ozaki.ryota@gmail.com>
> 
> do_file_page and do_no_page don't exist anymore, but some comments
> still refers them. The patch fixes them by replacing them with
> existing ones.
> 
> Signed-off-by: Ryota Ozaki <ozaki.ryota@gmail.com>

Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>

It seems there are other ones ;)
==
    Searched full:do_no_page (Results 1 - 3 of 3) sorted by relevancy

  /linux-2.6-git/arch/alpha/include/asm/
H A D	cacheflush.h 	66 /* This is used only in do_no_page and do_swap_page. */
  /linux-2.6-git/arch/avr32/mm/
H A D	cache.c 	116 * This one is called from do_no_page(), do_swap_page() and install_page().
  /linux-2.6-git/mm/
H A D	memory.c 	2121 * and do_anonymous_page and do_no_page can safely check later on).
2319 * do_no_page is protected similarly.





> ---
>  mm/memory.c |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)
> 
> I'm not familiar with the codes very much, so the fix may be wrong.
> 
> diff --git a/mm/memory.c b/mm/memory.c
> index 31250fa..3fbf32a 100644
> --- a/mm/memory.c
> +++ b/mm/memory.c
> @@ -2115,10 +2115,10 @@ EXPORT_SYMBOL_GPL(apply_to_page_range);
>   * handle_pte_fault chooses page fault handler according to an entry
>   * which was read non-atomically.  Before making any commitment, on
>   * those architectures or configurations (e.g. i386 with PAE) which
> - * might give a mix of unmatched parts, do_swap_page and do_file_page
> + * might give a mix of unmatched parts, do_swap_page and do_nonlinear_fault
>   * must check under lock before unmapping the pte and proceeding
>   * (but do_wp_page is only called after already making such a check;
> - * and do_anonymous_page and do_no_page can safely check later on).
> + * and do_anonymous_page can safely check later on).
>   */
>  static inline int pte_unmap_same(struct mm_struct *mm, pmd_t *pmd,
>  				pte_t *page_table, pte_t orig_pte)
> @@ -2316,7 +2316,7 @@ reuse:
>  		 * bit after it clear all dirty ptes, but before a racing
>  		 * do_wp_page installs a dirty pte.
>  		 *
> -		 * do_no_page is protected similarly.
> +		 * __do_fault is protected similarly.
>  		 */
>  		if (!page_mkwrite) {
>  			wait_on_page_locked(dirty_page);
> -- 
> 1.7.2.3
> 
> 

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] mm: Fix out-of-date comments which refers non-existent functions
  2011-02-09 23:58 ` KAMEZAWA Hiroyuki
@ 2011-02-10  3:58   ` Ryota Ozaki
  2011-02-10  4:16     ` KAMEZAWA Hiroyuki
  2011-02-10  4:44     ` Minchan Kim
  0 siblings, 2 replies; 6+ messages in thread
From: Ryota Ozaki @ 2011-02-10  3:58 UTC (permalink / raw)
  To: KAMEZAWA Hiroyuki
  Cc: linux-mm, Andrew Morton, Rik van Riel, Andrea Arcangeli,
	Hugh Dickins, linux-kernel

On Thu, Feb 10, 2011 at 8:58 AM, KAMEZAWA Hiroyuki
<kamezawa.hiroyu@jp.fujitsu.com> wrote:
> On Wed,  9 Feb 2011 23:42:17 +0900
> Ryota Ozaki <ozaki.ryota@gmail.com> wrote:
>
>> From: Ryota Ozaki <ozaki.ryota@gmail.com>
>>
>> do_file_page and do_no_page don't exist anymore, but some comments
>> still refers them. The patch fixes them by replacing them with
>> existing ones.
>>
>> Signed-off-by: Ryota Ozaki <ozaki.ryota@gmail.com>
>
> Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>

Thanks, Kamezawa-san.

>
> It seems there are other ones ;)
> ==
>    Searched full:do_no_page (Results 1 - 3 of 3) sorted by relevancy
>
>  /linux-2.6-git/arch/alpha/include/asm/
> H A D   cacheflush.h    66 /* This is used only in do_no_page and do_swap_page. */
>  /linux-2.6-git/arch/avr32/mm/
> H A D   cache.c         116 * This one is called from do_no_page(), do_swap_page() and install_page().
>  /linux-2.6-git/mm/
> H A D   memory.c        2121 * and do_anonymous_page and do_no_page can safely check later on).
> 2319 * do_no_page is protected similarly.

Nice catch :-) Cloud I assemble all fixes into one patch?

  ozaki-r

>
>
>
>
>
>> ---
>>  mm/memory.c |    6 +++---
>>  1 files changed, 3 insertions(+), 3 deletions(-)
>>
>> I'm not familiar with the codes very much, so the fix may be wrong.
>>
>> diff --git a/mm/memory.c b/mm/memory.c
>> index 31250fa..3fbf32a 100644
>> --- a/mm/memory.c
>> +++ b/mm/memory.c
>> @@ -2115,10 +2115,10 @@ EXPORT_SYMBOL_GPL(apply_to_page_range);
>>   * handle_pte_fault chooses page fault handler according to an entry
>>   * which was read non-atomically.  Before making any commitment, on
>>   * those architectures or configurations (e.g. i386 with PAE) which
>> - * might give a mix of unmatched parts, do_swap_page and do_file_page
>> + * might give a mix of unmatched parts, do_swap_page and do_nonlinear_fault
>>   * must check under lock before unmapping the pte and proceeding
>>   * (but do_wp_page is only called after already making such a check;
>> - * and do_anonymous_page and do_no_page can safely check later on).
>> + * and do_anonymous_page can safely check later on).
>>   */
>>  static inline int pte_unmap_same(struct mm_struct *mm, pmd_t *pmd,
>>                               pte_t *page_table, pte_t orig_pte)
>> @@ -2316,7 +2316,7 @@ reuse:
>>                * bit after it clear all dirty ptes, but before a racing
>>                * do_wp_page installs a dirty pte.
>>                *
>> -              * do_no_page is protected similarly.
>> +              * __do_fault is protected similarly.
>>                */
>>               if (!page_mkwrite) {
>>                       wait_on_page_locked(dirty_page);
>> --
>> 1.7.2.3
>>
>>
>
>

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] mm: Fix out-of-date comments which refers non-existent functions
  2011-02-10  3:58   ` Ryota Ozaki
@ 2011-02-10  4:16     ` KAMEZAWA Hiroyuki
  2011-02-10  4:44     ` Minchan Kim
  1 sibling, 0 replies; 6+ messages in thread
From: KAMEZAWA Hiroyuki @ 2011-02-10  4:16 UTC (permalink / raw)
  To: Ryota Ozaki
  Cc: linux-mm, Andrew Morton, Rik van Riel, Andrea Arcangeli,
	Hugh Dickins, linux-kernel

On Thu, 10 Feb 2011 12:58:21 +0900
Ryota Ozaki <ozaki.ryota@gmail.com> wrote:

> On Thu, Feb 10, 2011 at 8:58 AM, KAMEZAWA Hiroyuki
> <kamezawa.hiroyu@jp.fujitsu.com> wrote:
> > On Wed, A 9 Feb 2011 23:42:17 +0900
> > Ryota Ozaki <ozaki.ryota@gmail.com> wrote:
> >
> >> From: Ryota Ozaki <ozaki.ryota@gmail.com>
> >>
> >> do_file_page and do_no_page don't exist anymore, but some comments
> >> still refers them. The patch fixes them by replacing them with
> >> existing ones.
> >>
> >> Signed-off-by: Ryota Ozaki <ozaki.ryota@gmail.com>
> >
> > Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
> 
> Thanks, Kamezawa-san.
> 
> >
> > It seems there are other ones ;)
> > ==
> > A  A Searched full:do_no_page (Results 1 - 3 of 3) sorted by relevancy
> >
> > A /linux-2.6-git/arch/alpha/include/asm/
> > H A D A  cacheflush.h A  A 66 /* This is used only in do_no_page and do_swap_page. */
> > A /linux-2.6-git/arch/avr32/mm/
> > H A D A  cache.c A  A  A  A  116 * This one is called from do_no_page(), do_swap_page() and install_page().
> > A /linux-2.6-git/mm/
> > H A D A  memory.c A  A  A  A 2121 * and do_anonymous_page and do_no_page can safely check later on).
> > 2319 * do_no_page is protected similarly.
> 
> Nice catch :-) Cloud I assemble all fixes into one patch?
> 
>   ozaki-r
> 

Yes, I think it's allowed. 

Thanks,
-Kame


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] mm: Fix out-of-date comments which refers non-existent functions
  2011-02-10  3:58   ` Ryota Ozaki
  2011-02-10  4:16     ` KAMEZAWA Hiroyuki
@ 2011-02-10  4:44     ` Minchan Kim
  2011-02-10  4:56       ` Ryota Ozaki
  1 sibling, 1 reply; 6+ messages in thread
From: Minchan Kim @ 2011-02-10  4:44 UTC (permalink / raw)
  To: Ryota Ozaki
  Cc: KAMEZAWA Hiroyuki, linux-mm, Andrew Morton, Rik van Riel,
	Andrea Arcangeli, Hugh Dickins, linux-kernel

On Thu, Feb 10, 2011 at 12:58 PM, Ryota Ozaki <ozaki.ryota@gmail.com> wrote:
> On Thu, Feb 10, 2011 at 8:58 AM, KAMEZAWA Hiroyuki
> <kamezawa.hiroyu@jp.fujitsu.com> wrote:
>> On Wed,  9 Feb 2011 23:42:17 +0900
>> Ryota Ozaki <ozaki.ryota@gmail.com> wrote:
>>
>>> From: Ryota Ozaki <ozaki.ryota@gmail.com>
>>>
>>> do_file_page and do_no_page don't exist anymore, but some comments
>>> still refers them. The patch fixes them by replacing them with
>>> existing ones.
>>>
>>> Signed-off-by: Ryota Ozaki <ozaki.ryota@gmail.com>
>>
>> Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
>
> Thanks, Kamezawa-san.
>
>>
>> It seems there are other ones ;)
>> ==
>>    Searched full:do_no_page (Results 1 - 3 of 3) sorted by relevancy
>>
>>  /linux-2.6-git/arch/alpha/include/asm/
>> H A D   cacheflush.h    66 /* This is used only in do_no_page and do_swap_page. */
>>  /linux-2.6-git/arch/avr32/mm/
>> H A D   cache.c         116 * This one is called from do_no_page(), do_swap_page() and install_page().
>>  /linux-2.6-git/mm/
>> H A D   memory.c        2121 * and do_anonymous_page and do_no_page can safely check later on).
>> 2319 * do_no_page is protected similarly.
>
> Nice catch :-) Cloud I assemble all fixes into one patch?
>
>  ozaki-r
>

When you resend the patch, Please Cc Jiri Kosina <trivial@kernel.org>


-- 
Kind regards,
Minchan Kim

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] mm: Fix out-of-date comments which refers non-existent functions
  2011-02-10  4:44     ` Minchan Kim
@ 2011-02-10  4:56       ` Ryota Ozaki
  0 siblings, 0 replies; 6+ messages in thread
From: Ryota Ozaki @ 2011-02-10  4:56 UTC (permalink / raw)
  To: Minchan Kim
  Cc: KAMEZAWA Hiroyuki, linux-mm, Andrew Morton, Rik van Riel,
	Andrea Arcangeli, Hugh Dickins, linux-kernel

On Thu, Feb 10, 2011 at 1:44 PM, Minchan Kim <minchan.kim@gmail.com> wrote:
> On Thu, Feb 10, 2011 at 12:58 PM, Ryota Ozaki <ozaki.ryota@gmail.com> wrote:
>> On Thu, Feb 10, 2011 at 8:58 AM, KAMEZAWA Hiroyuki
>> <kamezawa.hiroyu@jp.fujitsu.com> wrote:
>>> On Wed,  9 Feb 2011 23:42:17 +0900
>>> Ryota Ozaki <ozaki.ryota@gmail.com> wrote:
>>>
>>>> From: Ryota Ozaki <ozaki.ryota@gmail.com>
>>>>
>>>> do_file_page and do_no_page don't exist anymore, but some comments
>>>> still refers them. The patch fixes them by replacing them with
>>>> existing ones.
>>>>
>>>> Signed-off-by: Ryota Ozaki <ozaki.ryota@gmail.com>
>>>
>>> Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
>>
>> Thanks, Kamezawa-san.
>>
>>>
>>> It seems there are other ones ;)
>>> ==
>>>    Searched full:do_no_page (Results 1 - 3 of 3) sorted by relevancy
>>>
>>>  /linux-2.6-git/arch/alpha/include/asm/
>>> H A D   cacheflush.h    66 /* This is used only in do_no_page and do_swap_page. */
>>>  /linux-2.6-git/arch/avr32/mm/
>>> H A D   cache.c         116 * This one is called from do_no_page(), do_swap_page() and install_page().
>>>  /linux-2.6-git/mm/
>>> H A D   memory.c        2121 * and do_anonymous_page and do_no_page can safely check later on).
>>> 2319 * do_no_page is protected similarly.
>>
>> Nice catch :-) Cloud I assemble all fixes into one patch?
>>
>>  ozaki-r
>>
>
> When you resend the patch, Please Cc Jiri Kosina <trivial@kernel.org>

OK, will do.

  ozaki-r

>
>
> --
> Kind regards,
> Minchan Kim
>

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-02-10  4:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-09 14:42 [PATCH] mm: Fix out-of-date comments which refers non-existent functions Ryota Ozaki
2011-02-09 23:58 ` KAMEZAWA Hiroyuki
2011-02-10  3:58   ` Ryota Ozaki
2011-02-10  4:16     ` KAMEZAWA Hiroyuki
2011-02-10  4:44     ` Minchan Kim
2011-02-10  4:56       ` Ryota Ozaki

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).