projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d981e28
)
mm/page_ext: use page_ext_data helper in page_owner
author
Kemeng Shi
<shikemeng@huaweicloud.com>
Tue, 18 Jul 2023 14:58:12 +0000
(22:58 +0800)
committer
Andrew Morton
<akpm@linux-foundation.org>
Mon, 21 Aug 2023 20:37:27 +0000
(13:37 -0700)
Use page_ext_data helper in page_owner to avoid access offset directly.
Link:
https://lkml.kernel.org/r/20230718145812.1991717-4-shikemeng@huaweicloud.com
Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Reviewed-by: Andrew Morton <akpm@linux-foudation.org>
Acked-by: Mike Rapoport (IBM) <rppt@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_owner.c
patch
|
blob
|
history
diff --git
a/mm/page_owner.c
b/mm/page_owner.c
index
c93baef
..
4e2723e
100644
(file)
--- a/
mm/page_owner.c
+++ b/
mm/page_owner.c
@@
-104,7
+104,7
@@
struct page_ext_operations page_owner_ops = {
static inline struct page_owner *get_page_owner(struct page_ext *page_ext)
{
- return
(void *)page_ext + page_owner_ops.offset
;
+ return
page_ext_data(page_ext, &page_owner_ops)
;
}
static noinline depot_stack_handle_t save_stack(gfp_t flags)