Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp260320pxb; Thu, 12 Aug 2021 15:58:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfy3ssi8bwIzJiLzq+DHB5ZjlNLjTzP6B/XfUiX0S5u4bxWaZZQmYh+NC1Hl3ssUw+eh/8 X-Received: by 2002:a05:6e02:1567:: with SMTP id k7mr665588ilu.146.1628809133752; Thu, 12 Aug 2021 15:58:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628809133; cv=none; d=google.com; s=arc-20160816; b=g4hHInAwGVCSz1QTStxe4U95Bdz31tDvZDgltPChjhXl8wcQqZjI6A8c6bhEwglNSc uX9xg1eG7ow0rx3dHMEkAM7RcGvHoSUNUmDKcg02MZGZj4PI7oMNQ19TZCjBLXv3PK3F wP2DjqrVGgKo9Nv4uh6XL+dzaF2py44R4t+q/Jbl6pOMC9fF+JMwVmpobke5wVp9JzSM pEJbP8OaHQbHiRBM8qONc2lLVLRDPLN/DH8M+71MRlIgtlscLbPD/5Y33qPI/A145On8 eWeZuRrcgSrnXu38izUAMYy3pvxq0go2SIzkndFL4IBbFPZ1pyT8V1Wm0Pf0t3kPdOed cLew== 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=G1G6jkrhKiFomC12cPWM37nESCRQR+eGg9/OgEMyut8=; b=M+ZCjSzs2GhMHK9WJsdok32m9sA/E+CVDe8EvlX9YH9bjf5jkiG1kQnIMxEuptYBu5 EM8uKBD2lyhEKSVE9yC9kQhjkc91ObvMpA+1l0Fl0TNWGfJhehRaD02q3yuysCcdg+9D TM08B4d2aOOaIXo0vITi3UUaAvj8b3jEFFEq3rRx44AvMjXdq284cz4rY2tY77201N/w CDxm0UjWJrq0Gp2bkP85bSi63f/cZx7pfWiJ5e+vUkur19GqntJEMDbL4wDaS7Zv6h9k S4Ax5DJAl5GfBMam+uNfwEEDA4szsvwfHoMeILBmAKNNzV1V9dxiiUdSjruKXpZC/Fyh ifsA== 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 a5si4149938ioo.37.2021.08.12.15.58.42; Thu, 12 Aug 2021 15:58:53 -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 S237684AbhHLVlR (ORCPT + 99 others); Thu, 12 Aug 2021 17:41:17 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:45696 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237425AbhHLVlR (ORCPT ); Thu, 12 Aug 2021 17:41:17 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: krisman) with ESMTPSA id 043B31F44207 From: Gabriel Krisman Bertazi To: amir73il@gmail.com, jack@suse.com Cc: linux-api@vger.kernel.org, linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, khazhy@google.com, dhowells@redhat.com, david@fromorbit.com, tytso@mit.edu, djwong@kernel.org, repnop@google.com, Gabriel Krisman Bertazi , kernel@collabora.com, Jan Kara Subject: [PATCH v6 06/21] inotify: Don't force FS_IN_IGNORED Date: Thu, 12 Aug 2021 17:39:55 -0400 Message-Id: <20210812214010.3197279-7-krisman@collabora.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210812214010.3197279-1-krisman@collabora.com> References: <20210812214010.3197279-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 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); if (S_ISDIR(inode->i_mode)) mask |= FS_EVENT_ON_CHILD; -- 2.32.0