diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-04-30 15:40:38 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-04-30 15:40:38 -0400 |
commit | e7acf15b702df37aa3571cc28a8f2dd39b80b20d (patch) | |
tree | 4d72f794497d490c98afc32fdb22a8676a2d2bcc /include | |
parent | 2f1171b09647142da831c47675b419da3fdf4707 (diff) |
pop assert when freeing page after bcachefs shutdownbcachefs-put-folio-assert
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/page-flags.h | 3 | ||||
-rw-r--r-- | include/trace/events/mmflags.h | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h index e6a21b62dcce..f21463fd43ed 100644 --- a/include/linux/page-flags.h +++ b/include/linux/page-flags.h @@ -111,6 +111,7 @@ enum pageflags { PG_swapbacked, /* Page is backed by RAM/swap */ PG_unevictable, /* Page is "unevictable" */ PG_dropbehind, /* drop pages on IO completion */ + PG_bcachefs_warn, #ifdef CONFIG_MMU PG_mlocked, /* Page is vma mlocked */ #endif @@ -667,6 +668,8 @@ FOLIO_TEST_CLEAR_FLAG_FALSE(young) FOLIO_FLAG_FALSE(idle) #endif +FOLIO_FLAG(bcachefs_warn, FOLIO_HEAD_PAGE) + /* * PageReported() is used to track reported free pages within the Buddy * allocator. We can use the non-atomic version of the test and set diff --git a/include/trace/events/mmflags.h b/include/trace/events/mmflags.h index 15aae955a10b..aa41fba7ef4a 100644 --- a/include/trace/events/mmflags.h +++ b/include/trace/events/mmflags.h @@ -159,7 +159,8 @@ TRACE_DEFINE_ENUM(___GFP_LAST_BIT); DEF_PAGEFLAG_NAME(reclaim), \ DEF_PAGEFLAG_NAME(swapbacked), \ DEF_PAGEFLAG_NAME(unevictable), \ - DEF_PAGEFLAG_NAME(dropbehind) \ + DEF_PAGEFLAG_NAME(dropbehind), \ + DEF_PAGEFLAG_NAME(bcachefs_warn) \ IF_HAVE_PG_MLOCK(mlocked) \ IF_HAVE_PG_HWPOISON(hwpoison) \ IF_HAVE_PG_IDLE(idle) \ |