[Devel] [PATCH rh7 4/9] Revert "ms/sysfs: do not account sysfs_ino_ida allocations to memcg"

Vladimir Davydov vdavydov at virtuozzo.com
Tue Apr 26 07:08:39 PDT 2016


This reverts commit 4771e50a884a2257d793354f53b889e3643a7651.

We are going to switch to the whitelist kmem accounting policy, so zap
every usage of __GFP_NOACCOUNT.

Signed-off-by: Vladimir Davydov <vdavydov at virtuozzo.com>
---
 fs/sysfs/dir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/sysfs/dir.c b/fs/sysfs/dir.c
index b4a7fda15738..620a402d8d6b 100644
--- a/fs/sysfs/dir.c
+++ b/fs/sysfs/dir.c
@@ -269,7 +269,7 @@ static int sysfs_alloc_ino(unsigned int *pino)
 	spin_unlock(&sysfs_ino_lock);
 
 	if (rc == -EAGAIN) {
-		if (ida_pre_get(&sysfs_ino_ida, GFP_KERNEL | __GFP_NOACCOUNT))
+		if (ida_pre_get(&sysfs_ino_ida, GFP_KERNEL))
 			goto retry;
 		rc = -ENOMEM;
 	}
-- 
2.1.4



More information about the Devel mailing list