Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4152785pxj; Tue, 15 Jun 2021 16:57:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7kHJnU/Hkji30viElSJ+HznX1yg5fQ3UR3rNZNQp6qNhcwQvgIZXlVlTbsg3cXxBZ1XV5 X-Received: by 2002:a17:906:16cb:: with SMTP id t11mr2138103ejd.112.1623801444558; Tue, 15 Jun 2021 16:57:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623801444; cv=none; d=google.com; s=arc-20160816; b=ELtZZMB7HzhNEsmxU6s+esErFUieH5av/MJ4LS3d2wnRZ9jqhyLi5tQDcGM5Xr0Sb/ 8HpvLdQ088vZwJbg+yZI1UpVv2PZpvmNgU6At0svmhgkdlZBaOcvxTH2+4ScmayDRg6l GCwvIlVKF8eTnoeWvSgi7aGXktvfAM+Feo3DpVctaC0C9BLqaNU3ew+6PB0p/fSLHEME 35E1e2WS9oc81JUm9hZeRrv6rlxXx/5kxVmZBK2mUjmNbkoeeVQiKANBWKkAb/wynnmz lm7v3bY/DBzJiKMKHdt8KW1LjOdKiUhI6CZu5/ay/xsqaDE2Wk8scmy6hzhTdsfELj/7 RzIA== 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=Ti77Ocm0KpZaLARTRQ0U6P+joMqsTOT3nBAd6DAByxE=; b=BR+sXbRIwA1B/f2LoeFfNhBpYDU5oNDiD4Ggk7N3C9sB97rxCGe/C0bHoWW9xj4MBA WxoSYosBMpjm8Gno7jnUTLVcTXpZ0Ny/Vqi79PAleU4/tbQgipl97XI5Hm95s4sOJkSq yuw7cNW6PruPb9gilWSGkpVHDbMXH18Q04KomLU4sI9ON2hJOT/4Lpbc91iEAGqe1tQQ KKwknjsm7uy5jg7AIk+cx0WPlqLdvTRqijxPjxUPLF24bKIy1wmGDKqVuQZEmxSSvwE5 j0tChdTgCf2mWWibjX/SJkslSqz6mVwHGu95o/g6eAkaLwExogAvRPaLnQJnwRBADwzm 97aQ== 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 f13si313734edy.493.2021.06.15.16.56.38; Tue, 15 Jun 2021 16:57:24 -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 S229811AbhFOX63 (ORCPT + 99 others); Tue, 15 Jun 2021 19:58:29 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:39980 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231617AbhFOX62 (ORCPT ); Tue, 15 Jun 2021 19:58:28 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: krisman) with ESMTPSA id 082F21F432F3 From: Gabriel Krisman Bertazi To: amir73il@gmail.com Cc: kernel@collabora.com, djwong@kernel.org, tytso@mit.edu, david@fromorbit.com, jack@suse.com, dhowells@redhat.com, khazhy@google.com, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, Gabriel Krisman Bertazi Subject: [PATCH v2 05/14] inotify: Don't force FS_IN_IGNORED Date: Tue, 15 Jun 2021 19:55:47 -0400 Message-Id: <20210615235556.970928-6-krisman@collabora.com> X-Mailer: git-send-email 2.31.0 In-Reply-To: <20210615235556.970928-1-krisman@collabora.com> References: <20210615235556.970928-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 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); if (S_ISDIR(inode->i_mode)) mask |= FS_EVENT_ON_CHILD; -- 2.31.0