Skip to contentSkip to conversation

remove annotation of gfp_mask in add_to_swap

PATCH In review Minchan Kim 2 participants 2 messages Jun 5, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove annotation of gfp_mask in add_to_swap

Hugh removed add_to_swap's gfp_mask argument.
(mm: remove gfp_mask from add_to_swap)
So we have to remove annotation of gfp_mask of the function.

This patch cleans up add_to_swap function.
It doesn't affect behavior of function.

---
 mm/swap_state.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
mm/swap_state.c +0 -1
index b9ca029..b62e7f5 100644
@@ -124,7 +124,6 @@ void __delete_from_swap_cache(struct page *page)
 /**
  * add_to_swap - allocate swap space for a page
  * @page: page we want to move to swap
- * @gfp_mask: memory allocation flags
  *
  * Allocate swap space for the page and add the page to the
  * swap cache.  Caller needs to hold the page lock. 
Signature · 7 lines
1.5.6.5

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Acked-by on v1 1/1
#1 lore raw
Quoted 3 lines · Minchan Kim

Hugh removed add_to_swap's gfp_mask argument.
(mm: remove gfp_mask from add_to_swap)
So we have to remove annotation of gfp_mask of the function.

"annotation"? Or "DocBook comment"? Or "DocBook annotation"?

Quoted 6 lines

This patch cleans up add_to_swap function. It doesn't affect behavior of function.

Thanks, yes, my oversight.

Quoted 18 lines
---
 mm/swap_state.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
mm/swap_state.c +0 -1
index b9ca029..b62e7f5 100644
@@ -124,7 +124,6 @@ void __delete_from_swap_cache(struct page *page)
 /**
  * add_to_swap - allocate swap space for a page
  * @page: page we want to move to swap
- * @gfp_mask: memory allocation flags
  *
  * Allocate swap space for the page and add the page to the
  * swap cache.  Caller needs to hold the page lock. 
Signature · 1 line
1.5.6.5

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>