Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3947529yba; Tue, 7 May 2019 09:31:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5kNDX9eEXJUkljuDcsH2TiYvWGHCODpTehKZvp09J2/Z63G2SBZ6f/4PLOMM7espXAh35 X-Received: by 2002:a63:682:: with SMTP id 124mr16727553pgg.243.1557246697980; Tue, 07 May 2019 09:31:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557246697; cv=none; d=google.com; s=arc-20160816; b=PkfEJiAsKk7azJDlw5vfzFcxk3VJaTNDnKKOUclnYo+3aDI5z27Dpd1xxbbmI2IRDC fgZfMLyPaRj25z0K/lxnAyhZ61qG+SCMqdQ2HGUifzaarHEPi25g9ZgF5xcGgR7dDk1c Zg1EsyNgnQJ7X6ez+9pp6MjAS9XLBH/C64UhhB8xMqn/WBpzTOKR97/WLo8P3fuuzHtr KjaQlp0j7okAftZtobnV3gfMM8yynNrEIyOrkvkxhpfanEf/Dwkj80TWtSSDmgLJqhiZ tNCw5vaDHMwtlqVWMquaVM6J67TN9BwADT1zSyJAvLLGhc2I1oKaiDBYp9ML4iJZZ1YQ 8puQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=HydT7mdg9YKE0YlCquV+jJBxsbV6UX7TylyFZiB787c=; b=BxWRJs5K86TcjgRTVda9HI3ahSCugLQbyXJ/yxiEOSnDctdBKPHogaCciix+ciOKk2 cndxIkWSlQWtbNVsxexs9elXHvZsMFzWOcTy2BTIPzhBAhtLA+XmafluGzUIOzvOSZpi rUuzzHjraDzPA2eO7nXw2G3rWMZQi62XMC31hiV46RHXeoxUyV9jyg/mjVrVtuX8Qiy5 JWimK6rckvMKi7lpW2s90eg7xSyY1v9KokmwBVdTHBklf3BAfkYwLPjzHolmOV7sm1lM 0Q0mkxxFTY6+QcFu6m24X45Fx0Lx0xfT5hhuCrBX2RVcTD2GxRnVu18v1/D34R6TPIQ7 7Ymw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LrnMyRwM; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f71si12692911pgc.150.2019.05.07.09.31.20; Tue, 07 May 2019 09:31:37 -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=@kernel.org header.s=default header.b=LrnMyRwM; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726980AbfEGQ3p (ORCPT + 99 others); Tue, 7 May 2019 12:29:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:46612 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726801AbfEGQ3p (ORCPT ); Tue, 7 May 2019 12:29:45 -0400 Received: from localhost (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 04D8D205C9; Tue, 7 May 2019 16:29:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557246584; bh=HydT7mdg9YKE0YlCquV+jJBxsbV6UX7TylyFZiB787c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LrnMyRwMwRudUklA0mNBpQhSPIbk8Ay3W6bMnDCplhfOXhHVlWsu/KgILCn1MWHOu 7kWlnFV5M2vFJG1btZnYN6qbtuBKcl7ZNBkd+FmuScm50o32qbacxlLrbR7LIDQiqh Z17WhDYrHB+lXwryq9robNVX9U2qqfrZUl3WB8d4= Date: Tue, 7 May 2019 12:29:42 -0400 From: Sasha Levin To: Jan Kara Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Amir Goldstein , Sasha Levin , linux-fsdevel@vger.kernel.org Subject: Re: [PATCH AUTOSEL 4.14 50/95] fsnotify: generalize handling of extra event flags Message-ID: <20190507162942.GD1747@sasha-vm> References: <20190507053826.31622-1-sashal@kernel.org> <20190507053826.31622-50-sashal@kernel.org> <20190507132330.GB4635@quack2.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20190507132330.GB4635@quack2.suse.cz> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 07, 2019 at 03:23:30PM +0200, Jan Kara wrote: >On Tue 07-05-19 01:37:39, Sasha Levin wrote: >> From: Amir Goldstein >> >> [ Upstream commit 007d1e8395eaa59b0e7ad9eb2b53a40859446a88 ] >> >> FS_EVENT_ON_CHILD gets a special treatment in fsnotify() because it is >> not a flag specifying an event type, but rather an extra flags that may >> be reported along with another event and control the handling of the >> event by the backend. >> >> FS_ISDIR is also an "extra flag" and not an "event type" and therefore >> desrves the same treatment. With inotify/dnotify backends it was never >> possible to set FS_ISDIR in mark masks, so it did not matter. >> With fanotify backend, mark adding code jumps through hoops to avoid >> setting the FS_ISDIR in the commulative object mask. >> >> Separate the constant ALL_FSNOTIFY_EVENTS to ALL_FSNOTIFY_FLAGS and >> ALL_FSNOTIFY_EVENTS, so the latter can be used to test for specific >> event types. >> >> Signed-off-by: Amir Goldstein >> Signed-off-by: Jan Kara >> Signed-off-by: Sasha Levin > >Sasha, why did you select this patch? It is just a cleanup with no user >visible effect and was done mostly to simplify implementing following >features... Sigh, my script picked up the patch after this one (by mistake). I've dropped that one but missed this one twice(!). Thanks for the heads-up, I'll drop it. -- Thanks, Sasha