After we switched to the whitelist kmem accounting design, using
alloc_kmem_pages is not enough for the new page to be accounted -
one must also pass __GFP_ACCOUNT in gfp flags.

Signed-off-by: Vladimir Davydov <[email protected]>
---
 fs/pipe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/pipe.c b/fs/pipe.c
index 57aa78e7c63e..d038ff89a43f 100644
--- a/fs/pipe.c
+++ b/fs/pipe.c
@@ -590,7 +590,7 @@ redo1:
                        size_t remaining;
 
                        if (!page) {
-                               page = alloc_kmem_pages(GFP_HIGHUSER, 0);
+                               page = alloc_kmem_pages(GFP_HIGHUSER | 
__GFP_ACCOUNT, 0);
                                if (unlikely(!page)) {
                                        ret = ret ? : -ENOMEM;
                                        break;
-- 
2.1.4

_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to