Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3500947pxb; Mon, 18 Oct 2021 17:02:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9lxwy5W8H3rr8ikxAkOxJj7pRJfFiGlG0k3wBXTs8JHMaIMo0nq7s7GRR/Mfts83yKPt+ X-Received: by 2002:aa7:c394:: with SMTP id k20mr266925edq.286.1634601734639; Mon, 18 Oct 2021 17:02:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634601734; cv=none; d=google.com; s=arc-20160816; b=NiLZtORXazqzqhMzzCHeEcbHV+ATd3P16YhHtJPiY8kwVo4AUU1y+Bo+1SL94I05nX joMMMFGEuBw8/VxmkCyOijH3q60JgdSXOU+OwMXOALi9oyrV+hZjzJok5DAW2q6W/N6Y 6n5enJ6JMAK/BKustFRBrwSai/O4CEtC3HGCEK6rn1oekiFmXlokgag+xHc9Wp3CXK77 2xiAJh8pF6mbnMWGS8dEMqBeRR0U4R9h30lmKiv1b61Tq5cMBp9dG5jVtya/aEc86XMB km5UF8YZ2znqlnu6u+wmM+smDlZ6EJtUfwiyQFEAODJG/Tuiqs7lF6MUEgq34IvD65sD 8pbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=woSumkz2pXOx3vX0gqQ+b7sW/v8rJNtghKv96o4PjDA=; b=WKFn9fHky4NmsSoFg2WSfY2JUdxQjQpPFwsZi1E/Dcn/oMNLZhd91R3p9q5gqF3/CA FMkHWORt4WstAdzyxQYq8tS9IPqmMvVwwigSCiexni8oE6WGn47633CbzcYbdr3I0pHI /F6HbMXz/qUD0aHtBZ0tW4QCbQS4K9bgS+y0YkiWIeJW2vQyNaWxC4/BMksL2c1PSio4 KxkKafBr56kMcyHN/K23TvolOu3ymQxzChgQ39N+XIlPPiLi+v13ftQFOxMBBVltZbck 3HWkGr+hWSz6EzbLq5/k+Xk4dUZIfphMSR2uFxzlCqxDe1zeU9oFeWCpPMYwGAOOmNHn /C/A== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a2si20083455edk.328.2021.10.18.17.01.51; Mon, 18 Oct 2021 17:02:14 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233786AbhJSAD1 (ORCPT + 99 others); Mon, 18 Oct 2021 20:03:27 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:40690 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229529AbhJSAD1 (ORCPT ); Mon, 18 Oct 2021 20:03:27 -0400 Received: from localhost (unknown [IPv6:2804:14c:124:8a08::1007]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: krisman) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id E95701F41A9C; Tue, 19 Oct 2021 01:01:13 +0100 (BST) From: Gabriel Krisman Bertazi To: jack@suse.com, amir73il@gmail.com Cc: djwong@kernel.org, tytso@mit.edu, david@fromorbit.com, dhowells@redhat.com, khazhy@google.com, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-api@vger.kernel.org, Gabriel Krisman Bertazi , kernel@collabora.com, Jan Kara Subject: [PATCH v8 07/32] inotify: Don't force FS_IN_IGNORED Date: Mon, 18 Oct 2021 20:59:50 -0300 Message-Id: <20211019000015.1666608-8-krisman@collabora.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211019000015.1666608-1-krisman@collabora.com> References: <20211019000015.1666608-1-krisman@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org 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 Reviewed-by: Amir Goldstein Reviewed-by: Jan Kara Signed-off-by: Gabriel Krisman Bertazi --- 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 62051247f6d2..29fca3284bb5 100644 --- a/fs/notify/inotify/inotify_user.c +++ b/fs/notify/inotify/inotify_user.c @@ -94,10 +94,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); if (S_ISDIR(inode->i_mode)) mask |= FS_EVENT_ON_CHILD; -- 2.33.0