@@ -5850,25 +5850,20 @@ static int mem_cgroup_move_account(struct page *page,
5850
5850
* @ptent: the pte to be checked
5851
5851
* @target: the pointer the target page or swap ent will be stored(can be NULL)
5852
5852
*
5853
- * Returns
5854
- * 0(MC_TARGET_NONE): if the pte is not a target for move charge.
5855
- * 1(MC_TARGET_PAGE): if the page corresponding to this pte is a target for
5856
- * move charge. if @target is not NULL, the page is stored in target->page
5857
- * with extra refcnt got(Callers should handle it).
5858
- * 2(MC_TARGET_SWAP): if the swap entry corresponding to this pte is a
5859
- * target for charge migration. if @target is not NULL, the entry is stored
5860
- * in target->ent.
5861
- * 3(MC_TARGET_DEVICE): like MC_TARGET_PAGE but page is device memory and
5862
- * thus not on the lru.
5863
- * For now we such page is charge like a regular page would be as for all
5864
- * intent and purposes it is just special memory taking the place of a
5865
- * regular page.
5866
- *
5867
- * See Documentations/vm/hmm.txt and include/linux/hmm.h
5868
- *
5869
- * Called with pte lock held.
5853
+ * Context: Called with pte lock held.
5854
+ * Return:
5855
+ * * MC_TARGET_NONE - If the pte is not a target for move charge.
5856
+ * * MC_TARGET_PAGE - If the page corresponding to this pte is a target for
5857
+ * move charge. If @target is not NULL, the page is stored in target->page
5858
+ * with extra refcnt taken (Caller should release it).
5859
+ * * MC_TARGET_SWAP - If the swap entry corresponding to this pte is a
5860
+ * target for charge migration. If @target is not NULL, the entry is
5861
+ * stored in target->ent.
5862
+ * * MC_TARGET_DEVICE - Like MC_TARGET_PAGE but page is device memory and
5863
+ * thus not on the lru. For now such page is charged like a regular page
5864
+ * would be as it is just special memory taking the place of a regular page.
5865
+ * See Documentations/vm/hmm.txt and include/linux/hmm.h
5870
5866
*/
5871
-
5872
5867
static enum mc_target_type get_mctgt_type (struct vm_area_struct * vma ,
5873
5868
unsigned long addr , pte_t ptent , union mc_target * target )
5874
5869
{
0 commit comments