Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp207652pxt; Wed, 4 Aug 2021 09:07:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjEaDoeltl16w2yZ5VxP502UpaB/7fWR7SEUAyrLcenxfnAJ+0dlz/XXDe01vjYxHCyTKG X-Received: by 2002:a05:6638:208:: with SMTP id e8mr225395jaq.66.1628093270028; Wed, 04 Aug 2021 09:07:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628093270; cv=none; d=google.com; s=arc-20160816; b=tSyrVR3ljiI9InN77NZT4USmRR6jyDaTiembVFsVcGzYJdX9Jzc/X66zZvZc4UnzUD yfhQmjOHv8c6LVIBbTHEZfVBZl5PQb+LuP1WFt9EDKrLz0rW4PXcSkBMYKfrE3arwZ+J OY3EDpb6Z7Knrz9Kr1UKLK/0bz6ACpn0grzxKXI8kf0TU8YQQR0GMWa1+VDYI00+69u6 px8ybHP1hCwSFQlEvRQ52eCJwbRUfMFyUMLpcaTyg18WOuy6VCea4u92C+t3w7LgtDf3 6AOoQMQFjI4VuAa0sv3KA1CtcfCTRpLVigQEdq9HIhI4d1INfTh5eqqmDGxEuK9Csukd J3cg== 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=FcQyJGQkjyQ/Q7xRBZWy7ztj9gH+86qm/R4/SXSW56ais1hVA0Nvb5mTNy8IWEOc3g ROzfDV97su6H7g11nj85RF94Ke164XpDs55MAoZO8TdajIUjAyTTH+4nztOAfKEtY9/l +D4hcZCm2dgQz3x5K5ZdEi6/vD9h5Zuy4B0+2Wb2Q+LF+nnjvUa9Wbzd5WKTkHHJl03+ 6D9x36+GdBw/RKGrOx4XNviZLO2oR2iy308q0bJLBnBq9CLOYyJpNUNEM59nH9PApbQ0 u5PzBOv1Fe59MG7FwaJwIxs/r0nKKuG6/f+j4gitVBCuUZKDtMd8dflw5l/Ga/fyILu8 P2dw== 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 x15si2879735ila.66.2021.08.04.09.07.37; Wed, 04 Aug 2021 09:07:50 -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 S231523AbhHDQHG (ORCPT + 99 others); Wed, 4 Aug 2021 12:07:06 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:41914 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231656AbhHDQHE (ORCPT ); Wed, 4 Aug 2021 12:07:04 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: krisman) with ESMTPSA id 110881F4080F 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 v5 06/23] inotify: Don't force FS_IN_IGNORED Date: Wed, 4 Aug 2021 12:05:55 -0400 Message-Id: <20210804160612.3575505-7-krisman@collabora.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210804160612.3575505-1-krisman@collabora.com> References: <20210804160612.3575505-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