Skip to content

Commit e7af401

Browse files
maninder42akpm00
authored andcommitted
mm: page_owner: fix wrong information in dump_page_owner
With commit ea4b5b3 ("mm,page_owner: update metadata for tail pages"), new API __update_page_owner_handle was introduced and arguemnt was passed in wrong order from __set_page_owner and thus page_owner is giving wrong data. [ 15.982420] page last allocated via order 0, migratetype Unmovable, gfp_mask 0xcc0(GFP_KERNEL), pid 80, tgid -1210279584 (insmod), ts 80, free_ts 0 Fixing the same. Correct output: [ 14.556482] page last allocated via order 0, migratetype Unmovable, gfp_mask 0xcc0(GFP_KERNEL), pid 80, tgid 80 (insmod), ts 14552004992, free_ts 0 Link: https://lkml.kernel.org/r/[email protected] Fixes: ea4b5b3 ("mm,page_owner: update metadata for tail pages") Signed-off-by: Maninder Singh <[email protected]> Signed-off-by: Hariom Panthi <[email protected]> Acked-by: Oscar Salvador <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Lorenzo Stoakes <[email protected]> Cc: Rohit Thapliyal <[email protected]> Cc: Uladzislau Rezki (Sony) <[email protected]> Cc: Vlastimil Babka <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 955a923 commit e7af401

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/page_owner.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ noinline void __set_page_owner(struct page *page, unsigned short order,
328328
if (unlikely(!page_ext))
329329
return;
330330
__update_page_owner_handle(page_ext, handle, order, gfp_mask, -1,
331-
current->pid, current->tgid, ts_nsec,
331+
ts_nsec, current->pid, current->tgid,
332332
current->comm);
333333
page_ext_put(page_ext);
334334
inc_stack_record_count(handle, gfp_mask, 1 << order);

0 commit comments

Comments
 (0)