projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0a5d93
)
mm/page_ext: use page_ext_data helper in page_table_check
author
Kemeng Shi
<shikemeng@huaweicloud.com>
Tue, 18 Jul 2023 14:58:11 +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_table_check to avoid access offset
directly.
Link:
https://lkml.kernel.org/r/20230718145812.1991717-3-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_table_check.c
patch
|
blob
|
history
diff --git
a/mm/page_table_check.c
b/mm/page_table_check.c
index 84c8163984e5ce911435c9cc5748dccca0d7a20e..46e77c12c81ecf32488f5c8171bebb200c37726e 100644
(file)
--- a/
mm/page_table_check.c
+++ b/
mm/page_table_check.c
@@
-51,7
+51,7
@@
struct page_ext_operations page_table_check_ops = {
static struct page_table_check *get_page_table_check(struct page_ext *page_ext)
{
BUG_ON(!page_ext);
- return
(void *)(page_ext) + page_table_check_ops.offset
;
+ return
page_ext_data(page_ext, &page_table_check_ops)
;
}
/*