Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp455107imm; Mon, 2 Jul 2018 14:55:58 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcGhDJefb7SbFu7cnKjWfHiI6lVhWnh5CCKKe/v0ccsiXh0hFzuXt+iXbWJGUuTUQDwL5ji X-Received: by 2002:a62:3101:: with SMTP id x1-v6mr26632906pfx.246.1530568558422; Mon, 02 Jul 2018 14:55:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530568558; cv=none; d=google.com; s=arc-20160816; b=D/9Y0xAfYbojF9gZmWSBXPEc4gDIioEGYHzudj0R6jNgLF/f7qOuXD5S9PU/buTqsR IkCw+gKDGS9cn5dxfTNoV9oHOjOCAI9VZ4R4F9YEajd4D8NKEVdEfCw3YPfy4JiYcnxg 2s7LPXWNePfMNIHpAd8tZSC2ma97pVu1qSUaxDjDfRcgE+VHK6bWpyyRqm/d0Rkg+oD9 EANpNMlwBB7Ef2uEl8KLUnSCBa+Xd50+RBIPvIcJ/KGoVk2G1rYrYNpeRFYBofRLLvCu qM//Roogl8w6ghboGSCzqBbc9WyTr69xyvs/onXD5+h4vORfHq0aJlndSrKzRxMI/eLL 4MCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=/eCyUzVEodDEJDj1KMPhPb1uhIgk/F30b0HI1HAROkg=; b=WyP/j622HEnFhgr0sicsqwi7jxBFSpt9zawas93NJKARbjuo9O1uGloKg5LJdFyuQ2 5t09lz4gb/aOYApIg9rgRZM07lv3a0BsA8qADPjF/04f9dZzhN/Kap7ZqLHUUwZd2nkw X05NOdwI7k0Dsm6Qe/7H6dgODtQMRxWWZA03V8M6hilFwPaPivqBnbKnZdjbaaUHZumv CyV/pKWFoGnTwnI+38TtilBbpHWapcTBqDNV4DqbDLpTd4ArIgm6SCg3IXnb2cisS+j1 SB+dPMeKxxN4hTTfgeeA9jSSu53W6fWdGhTQb43eolYf8Ke5eZsKhbl5fOlSNSGaeScJ wDZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=uGNWLr9g; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r1-v6si17237812plb.172.2018.07.02.14.55.43; Mon, 02 Jul 2018 14:55:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=uGNWLr9g; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753579AbeGBVzB (ORCPT + 99 others); Mon, 2 Jul 2018 17:55:01 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:46111 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753224AbeGBVzA (ORCPT ); Mon, 2 Jul 2018 17:55:00 -0400 Received: by mail-pf0-f194.google.com with SMTP id l123-v6so5040138pfl.13 for ; Mon, 02 Jul 2018 14:55:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/eCyUzVEodDEJDj1KMPhPb1uhIgk/F30b0HI1HAROkg=; b=uGNWLr9gube3Yj7ltQ2/qTAbwQcDex9b88Z9EJ/J9rav/THRDbDmzZnj5BEIMwTPts UuitwjCH2cXHoVbN/Nl+Ygc4xMKj0KOKRbv9OGg1UhUM87JcLKH4sadmjWoVv4IpvfSI nffCq0X2+qwn9E4K3n0o/LDVbUCMIwFRZqeGvn3SrPIBWouQ1sURrVmc7btJZ6NIF7fE eBJRXOF/j4WDvxtD02Pxb9h2qlXBox40enNm9IarXa9Kv80M0LXMqm3C/VlanH+nL0Qs 7J+YcRaHOWgkX5PPb1lUxl7WsqviQuY1VYRyQW50D+ByNTq8+syTX76KptPMW3sz2v/v Th7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=/eCyUzVEodDEJDj1KMPhPb1uhIgk/F30b0HI1HAROkg=; b=UROCyTg4mxvssugSOxYeZ1KN5R701U2s8WDQDdDciNt3OpH7j+sH0jRIfluHuCx/QV UC6ryuQcUmjWQrlYB1Vzk3OiomWtyu00E+2gAsLzeVCsUQTtDDbMDypgVlRk8Fx1ngBU ymM26GyaWMSsbJ6uB71OryfZtWZDul+u+XzzPiB0hRCINCX8Cm01Xydit9jAhRkgmSW4 yx6n0DtYNoU/HJ+jp18ByL0OhjNXfRUitkAvSaA+uZ+zgrP+M/HvVpavOzFf+iWe+qrO R1MGgJaN9CZYLzHjnYlqJhmzij638a7RvHboedFvKaDTDTnIIY683xiSlS9FdMtaZ35c RgMg== X-Gm-Message-State: APt69E2DYOSUSNc/snc+EeT2LLGDRRUvPtm82JZE6N29/zs005qqu8Mw UtmdibVTDit4xRafHBs3BFf+0/mgL14= X-Received: by 2002:a63:c20:: with SMTP id b32-v6mr4351698pgl.400.1530568499617; Mon, 02 Jul 2018 14:54:59 -0700 (PDT) Received: from shakeelb.mtv.corp.google.com ([2620:15c:2cb:201:3a5f:3a4f:fa44:6b63]) by smtp.gmail.com with ESMTPSA id t78-v6sm10528386pfa.160.2018.07.02.14.54.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Jul 2018 14:54:58 -0700 (PDT) From: Shakeel Butt To: Andrew Morton Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Shakeel Butt Subject: [PATCH] fs-fsnotify-account-fsnotify-metadata-to-kmemcg.patch.cleanup Date: Mon, 2 Jul 2018 14:54:39 -0700 Message-Id: <20180702215439.211597-1-shakeelb@google.com> X-Mailer: git-send-email 2.18.0.399.gad0ab374a1-goog In-Reply-To: <20180627191250.209150-2-shakeelb@google.com> References: <20180627191250.209150-2-shakeelb@google.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andres, this is a small cleanup to the patch "fs: fsnotify: account fsnotify metadata to kmemcg". Please squash. Signed-off-by: Shakeel Butt --- fs/notify/fanotify/fanotify.c | 2 +- fs/notify/inotify/inotify_fsnotify.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/notify/fanotify/fanotify.c b/fs/notify/fanotify/fanotify.c index 6ff1f75d156d..eb4e75175cfb 100644 --- a/fs/notify/fanotify/fanotify.c +++ b/fs/notify/fanotify/fanotify.c @@ -142,7 +142,7 @@ struct fanotify_event_info *fanotify_alloc_event(struct fsnotify_group *group, const struct path *path) { struct fanotify_event_info *event = NULL; - gfp_t gfp = GFP_KERNEL | __GFP_ACCOUNT; + gfp_t gfp = GFP_KERNEL_ACCOUNT; /* * For queues with unlimited length lost events are not expected and diff --git a/fs/notify/inotify/inotify_fsnotify.c b/fs/notify/inotify/inotify_fsnotify.c index 52e167d04b11..f4184b4f3815 100644 --- a/fs/notify/inotify/inotify_fsnotify.c +++ b/fs/notify/inotify/inotify_fsnotify.c @@ -101,7 +101,7 @@ int inotify_handle_event(struct fsnotify_group *group, /* Whoever is interested in the event, pays for the allocation. */ memalloc_use_memcg(group->memcg); - event = kmalloc(alloc_len, GFP_KERNEL | __GFP_ACCOUNT); + event = kmalloc(alloc_len, GFP_KERNEL_ACCOUNT); memalloc_unuse_memcg(); if (unlikely(!event)) { -- 2.18.0.399.gad0ab374a1-goog