Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4681181pxv; Tue, 20 Jul 2021 09:12:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGphL+bRFMRDSPoAyKUsqnyoqncCAWJbcPkaJXsaLOsrDmN1KjF0D3QPZC/J0L65OUBtao X-Received: by 2002:a17:906:4ad9:: with SMTP id u25mr33139741ejt.174.1626797554252; Tue, 20 Jul 2021 09:12:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626797554; cv=none; d=google.com; s=arc-20160816; b=SqAvEIbmZwZcPhBN85yMABnLfTDZav8SVE7DstXzzZGSJzAozNPv7Uhw5cc18LF06H GzADnkZzlPYtQt5/n11nxAlZZ1sWo+7gAEEVNJqrq7uVgeKDzcAr6twYc+nfJbmJfLwP yLGk0TKd3Rvn60tpEPHPYCQ8kG8LfR8CFbqqjqRES5hVsCnrj9V56+tAZslRoeoTJE02 PNkTRF8xwR/ljQCRANhty28WW9hMIfRwbnooPfw1sbLHlm8ixhVtmaJUkpXAq2m154E5 etyAqkDHn6HSB9SSA2ZwpTvHRnX97e+rvNOFgrTnpAPkwPNEC150ZsvXkwednjUDHSyS v9EQ== 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=JiQHsIUESCgDKu2EKeTwQJYLWCWLAEACCtGQG6Q2qfOP9/TXQJ7wq1MBipdcIVcSdX N1r9m0OVsA4LkbfIfxWkfM1PcR1R8uDnhaXfkAbJYYQoCWLV5JF1KP3d9rWPEoDFM/tD kryziaEf1DM5Ku0hYeW0kekZJfgSPNbA0FClIoa9cgGgUP/wVmCb4HJQ1IGb/p4i8np9 kLqrhionqmQ79cQVhTUL0aHYShqODVnSuImZJoaWN3UGfK0ufvLvC/7N5WGOKoQXTKNO ouLPrEooUr1zoI3m5riUE865A52j2nZyJBvSpIC6XKPH8ZphfzrACTG/ypHm/CpXktNC IPhQ== 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 h8si28720436ejj.750.2021.07.20.09.12.10; Tue, 20 Jul 2021 09:12:34 -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 S236425AbhGTPau (ORCPT + 99 others); Tue, 20 Jul 2021 11:30:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240509AbhGTPUm (ORCPT ); Tue, 20 Jul 2021 11:20:42 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54802C061787; Tue, 20 Jul 2021 09:00:17 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: krisman) with ESMTPSA id EAEDA1F4313E 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, Gabriel Krisman Bertazi , kernel@collabora.com, Jan Kara Subject: [PATCH v4 06/16] inotify: Don't force FS_IN_IGNORED Date: Tue, 20 Jul 2021 11:59:34 -0400 Message-Id: <20210720155944.1447086-7-krisman@collabora.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210720155944.1447086-1-krisman@collabora.com> References: <20210720155944.1447086-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