diff mbox series

mm/page-flags: Fix comment

Message ID 20201027025823.3704-1-willy@infradead.org (mailing list archive)
State New, archived
Headers show
Series mm/page-flags: Fix comment | expand

Commit Message

Matthew Wilcox Oct. 27, 2020, 2:58 a.m. UTC
We haven't had 'dontuse' flags since 2002.  Replace this obsolete
warning with a hopefully more useful one.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
---
 include/linux/page-flags.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

William Kucharski Oct. 27, 2020, 1:51 p.m. UTC | #1
Reviewed-by: William Kucharski <william.kucharski@oracle.com>

> On Oct 26, 2020, at 8:58 PM, Matthew Wilcox (Oracle) <willy@infradead.org> wrote:
> 
> We haven't had 'dontuse' flags since 2002.  Replace this obsolete
> warning with a hopefully more useful one.
> 
> Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
> ---
> include/linux/page-flags.h | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h
> index 0d3402517e43..1a41ff36907b 100644
> --- a/include/linux/page-flags.h
> +++ b/include/linux/page-flags.h
> @@ -86,8 +86,7 @@
>  */
> 
> /*
> - * Don't use the *_dontuse flags.  Use the macros.  Otherwise you'll break
> - * locked- and dirty-page accounting.
> + * Don't use the pageflags directly.  Use the PageFoo macros.
>  *
>  * The page flags field is split into two parts, the main flags area
>  * which extends from the low bits upwards, and the fields area which
> -- 
> 2.28.0
> 
>
diff mbox series

Patch

diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h
index 0d3402517e43..1a41ff36907b 100644
--- a/include/linux/page-flags.h
+++ b/include/linux/page-flags.h
@@ -86,8 +86,7 @@ 
  */
 
 /*
- * Don't use the *_dontuse flags.  Use the macros.  Otherwise you'll break
- * locked- and dirty-page accounting.
+ * Don't use the pageflags directly.  Use the PageFoo macros.
  *
  * The page flags field is split into two parts, the main flags area
  * which extends from the low bits upwards, and the fields area which