Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp456606imm; Mon, 2 Jul 2018 14:58:10 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfZ8KK9GvVuJbCHDEqaJcDJJjiGkmtcG7fOw2nMEOteiDu+7Rm+2WaP3ci6UFl99uHtjTXf X-Received: by 2002:a62:748:: with SMTP id b69-v6mr5733065pfd.177.1530568690905; Mon, 02 Jul 2018 14:58:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530568690; cv=none; d=google.com; s=arc-20160816; b=hTPifQ4e4glP1BygPrah+6I8/NBdug18ximq2YTut0b8we/q9mKeJV6syzRy6Gkf+u P22kT0TdRcCqbWBGHEC+MzMEx7nLRHXaMz7MI5rmXtlcy6nJe7MqeRuBsEarLlypL7GR CocSrBq6sLJcAtrrUMMx5UEscLmsk4rfzCkUsUfVVUGXFdi+Km/yRdK5ODIEVHJmB2Oz QBXA7YguVI7aFNTeOiOvKSPvvTXINRFIkpMhx+ShNvzkXgHya7JxDmP2QLTqamc//hXP T6y6pcW/VaCOIIYbRvltO21YWlFf/uUAgs3AMTFdAXnXWyX1sy3InAa7Okz44juZ+3iG opsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=qibBM+30K2a5QarUPOZub4Nik/43CmDJciNQxoH1+fg=; b=lUwJT5XdwSa6oj5e2fxZKhlNlZII05qUnHbZErWvXlBVTTaVUwoVfjqf7lBs+Jwbrd oJYiBpDwD5f87zqaCcm+Tz6tv8dmSccVv74Gy1xe7jFz70S9641CGt/4GHxFn3nUaHKz zLBe2wiS1LtzvbtgXPUaz4Pyo3eLAEqdXi4sWKkxmlL4hemj1ZpY3Y9mq59cLC7nIhXn pOsXXqIu5AflMBMT5aeYaiurRrr64IRXY7U/mVZutIn/BdEPng7vJAkAhop1uqVIUs50 sa0l9U+Q1gMrtsqp8u1m4fmHKScO4koGIGdslZ1uwuf0fcOKJFbXOvTZdtu9pZ7+94QI ybnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ZCE8U6aU; 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 q11-v6si6527132pli.86.2018.07.02.14.57.56; Mon, 02 Jul 2018 14:58:10 -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=ZCE8U6aU; 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 S1753647AbeGBV4Z (ORCPT + 99 others); Mon, 2 Jul 2018 17:56:25 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:53799 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753224AbeGBV4Y (ORCPT ); Mon, 2 Jul 2018 17:56:24 -0400 Received: by mail-wm0-f68.google.com with SMTP id b188-v6so235413wme.3 for ; Mon, 02 Jul 2018 14:56:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qibBM+30K2a5QarUPOZub4Nik/43CmDJciNQxoH1+fg=; b=ZCE8U6aU9pOCN8RnxNeeUHFxFIlKSfOCDvLu9Ix67zdjS+l6Hx8XI5k0Sjje/3SwOg Mpccwf4jEaJ8Q/MHumE31BkLunHvQwc2HUkADeti/TpLpWVtlXXxjlI0SpNpd3g6tkKm iXDvM6qDEec1b5GwMXm/50ZzmSDwW1MRgLHWZLEspjMNb1CDNFZXPJ03qMe11L5NhIvD ZVw1gG5eV66PiaPYMlTqQyxMhXU4omObdvDVTHZfP/0w9d8Pv7n54ZgxKZ/7TRFkZ5T3 VFEBfnMJx3epiBZ2Me8wd47zzMh4M3yUPh8NMzqJAapmQagfdCk4ChBDM8/5eJh3pWcN mvzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qibBM+30K2a5QarUPOZub4Nik/43CmDJciNQxoH1+fg=; b=Yq0f9o4iiBGo6jp7byl8zU4P38m7XY6ocx6AiHWDX/9mtScIbMVqaxXnzh4LWJKb1b CgTYT08tPHMNqDJO0KzZKT2AIyD8ixjtvD7ap8/3msmk+NielitnO+QB/TymenjpJQ56 ftbpgxvQpoIjTHM5NuULJOn/ZIpAsMDmACBZ82c49Obd5LRyK/JTD1GxjjhOewQH7mpI FKopOSbEgqWW4rXLMeUKtcZCjRw9pavhBxVZkwXODDruX7sjOIDToSeVCr67wct/J2UZ Vcj/xlIwJ/z+5kyIhWFvQrH9pVIaCAG2X9WbQ2yUKAWU/xJPvrkYmTNlRH6GVsCn/lzF Gklg== X-Gm-Message-State: APt69E3uU68f0zaOrDd/xeuqlFFMsK0I1wtkxWWPJDYZEZGyPqO6I5Vw bGMB6Z37a+/3ZKpgj/R3gcgznVkViLrUNP0VXMzutWCP X-Received: by 2002:a1c:9106:: with SMTP id t6-v6mr9593467wmd.2.1530568582599; Mon, 02 Jul 2018 14:56:22 -0700 (PDT) MIME-Version: 1.0 References: <20180627191250.209150-2-shakeelb@google.com> <20180702215439.211597-1-shakeelb@google.com> In-Reply-To: <20180702215439.211597-1-shakeelb@google.com> From: Shakeel Butt Date: Mon, 2 Jul 2018 14:56:10 -0700 Message-ID: Subject: Re: [PATCH] fs-fsnotify-account-fsnotify-metadata-to-kmemcg.patch.cleanup To: Andrew Morton Cc: linux-fsdevel , LKML , Linux MM Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 2, 2018 at 2:54 PM Shakeel Butt wrote: > > Hi Andres, this is a small cleanup to the patch "fs: fsnotify: account *Andrew* > 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 >