Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp981472pxj; Fri, 21 May 2021 03:48:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyylrkXL6yZNeUryq79+ZnhQj5tXobhDW4Wq/AW2oO+L5QfvSVUqIVfVcwpnfofgQSoL6SO X-Received: by 2002:a50:fd17:: with SMTP id i23mr10886559eds.54.1621594105579; Fri, 21 May 2021 03:48:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621594105; cv=none; d=google.com; s=arc-20160816; b=iEoLkJAD+3ZmQnd6TQV5AyM/RCV/3SOqc5J+d4B4ktVXh2ZJMddeBZt7Eg2IsP8xx/ LKZ0jGtpTQGkiuSp3q49hHdf3qRGqceF9eBCE02pX+Dr3kb37XQSzpU0s1QmpJRupxTe heE1ECKYs09K29exfwOIFK5MJkJanEhGaTeZ6O6MkSWU28bK55mpgmv0vudgVxcBDigx IGCCCAufrk+rMv6g/NOdKMoFGOfEa4hYcbo/QYNj6XR409lPNWLnS7xvEL5taiZbsrBP by69RSm9Nt5Zp9nHCnFqxjzT8wtRylY2lf1bhk3nWc0kw7owtoJpQKZ/lT3qqf9sfwfw jVxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=F68djwrrrlB+TcldXidy5MN/3R9n2lZHelR2pEFMlHU=; b=Qnrry8CFzdnIL0IdhIcseSF/HLsCz4gl8UfHA43zP25Kq4paJVbIDKTagPW2pTJTrK enbhFtod7y5ByjrILUvPstJx4xDEUtQ3B/gZhkUP7QcIccYM3jhqH4Ug4iV1NpcD3JQb 63P9tUOZDv/4qEegAsOsiL9AlO3AQ2r4AkpC4U8avBk/vFuoUvF/5KQYiivRfEy5pXmH oAqstpk+DxuTMviA0aqRFU8Ed+uAt6MIPNzi5ILHPhjHPiiVFIo+MWDXJww5PL7M5vT7 97HooZHXUyXQSqpfii0Mn5rwf7ODYEoZHUgzivjBXqbM9W7vWKHYgqNCyVD2/a0Lrzj9 vOog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="S6xbS/yQ"; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p17si4591233edu.487.2021.05.21.03.48.01; Fri, 21 May 2021 03:48:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="S6xbS/yQ"; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235522AbhEUJJE (ORCPT + 99 others); Fri, 21 May 2021 05:09:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235439AbhEUJJD (ORCPT ); Fri, 21 May 2021 05:09:03 -0400 Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com [IPv6:2607:f8b0:4864:20::d36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2681CC061574; Fri, 21 May 2021 02:07:41 -0700 (PDT) Received: by mail-io1-xd36.google.com with SMTP id b25so1106980iot.5; Fri, 21 May 2021 02:07:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=F68djwrrrlB+TcldXidy5MN/3R9n2lZHelR2pEFMlHU=; b=S6xbS/yQBhxwHdRnjhwMLqSX1iGJDDuoKPl9IOnk5+aYo3PrzVbSoFiTyJziNTCDD3 Hxl3ZkX/PvlYAv6kPyNqlBYLdgvoEmtI9qv4y469KhJ3ATQxnrLRpsjOoTRAhW64fpVU opMM8IquJZHsamIjbO56bBibM5K/jcvrF55l1A6EykFFGoWzrtxBgKp7r+YDU6DmQRTf lYsBCUVT5lqMCF2Y61k6EBITfF3JjrTh1dLGChE+xefeMRoTFDP3IxP4wCcmQ8uwhYIS MEgXSjs6xsJdtmiM1bcxyOKj8t0wHGd1ruUg7hPby/laEXwhC4lFF+wKeavnW1XpK/BC 02lQ== 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=F68djwrrrlB+TcldXidy5MN/3R9n2lZHelR2pEFMlHU=; b=EWjswr1MJJ45vWOXuwUMl9pjILOdMKAeV7PVBzo8HglWRcTQM5laxvyzNf/tM/3/e8 C75K9d+N/cOX6F2i/xJ9w3MVLkfQHaPXBBtisqezERvqu2pQx5eCp3PN5FtXwPwu9+3G cY6z5dAdhIl4qS1QPvSGx6btz3u5FXcUdOcL5LsXfhDrIwAWQvp2GNdIMwBlc9H+sLTi vTvYAR+sJapmkn0nT9pw0jyTGSvEF/yv4WQfqxzSeH3Osk5w5ACJ95CP69whwmwmoOYo v/mrGQueuimZxUIRXKc6zWJyd7aH1dO8kID38ZJ+2E2Iw51WqrxYTmV8VbVU5KoHpvFW mUUw== X-Gm-Message-State: AOAM532qna3blmPjzKrFhlKEYJesODEo9nT0EseermnhCBpyeNGVoQB3 +KfQC2az1uwe9Ryf9Eb4l4urmS+NAF5U1FLI4pUXjP0M6Z0= X-Received: by 2002:a6b:3119:: with SMTP id j25mr9404514ioa.64.1621588060516; Fri, 21 May 2021 02:07:40 -0700 (PDT) MIME-Version: 1.0 References: <20210521024134.1032503-1-krisman@collabora.com> <20210521024134.1032503-6-krisman@collabora.com> In-Reply-To: <20210521024134.1032503-6-krisman@collabora.com> From: Amir Goldstein Date: Fri, 21 May 2021 12:07:29 +0300 Message-ID: Subject: Re: [PATCH 05/11] inotify: Don't force FS_IN_IGNORED To: Gabriel Krisman Bertazi Cc: kernel@collabora.com, "Darrick J . Wong" , "Theodore Ts'o" , Dave Chinner , Jan Kara , David Howells , Khazhismel Kumykov , linux-fsdevel , Ext4 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Fri, May 21, 2021 at 5:42 AM Gabriel Krisman Bertazi wrote: > > According to Amir: > > "FS_IN_IGNORED is completely internal to inotify and there is no need > to set it in i_fsnotify_mask at all, so if we remove the bit from the > output of inotify_arg_to_mask() no functionality will change and we will > be able to overload the event bit for FS_ERROR." > > This is done in preparation to overload FS_ERROR with the notification > mechanism in fanotify. > > Suggested-by: Amir Goldstein > Signed-off-by: Gabriel Krisman Bertazi Reviewed-by: Amir Goldstein > --- > fs/notify/inotify/inotify_user.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/fs/notify/inotify/inotify_user.c b/fs/notify/inotify/inotify_user.c > index 98f61b31745a..4d17be6dd58d 100644 > --- a/fs/notify/inotify/inotify_user.c > +++ b/fs/notify/inotify/inotify_user.c > @@ -89,10 +89,10 @@ static inline __u32 inotify_arg_to_mask(struct inode *inode, u32 arg) > __u32 mask; > > /* > - * Everything should accept their own ignored and should receive events > - * when the inode is unmounted. All directories care about children. > + * Everything should receive events when the inode is unmounted. > + * All directories care about children. > */ > - mask = (FS_IN_IGNORED | FS_UNMOUNT); > + mask = (FS_UNMOUNT); Nit: can remove () Thanks, Amir.