Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp930576pxj; Fri, 21 May 2021 02:28:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKnUM7+eJVBdwjKLFVdr9ctMY0vWq2ojknJFqXnQi19WAqM6aCKN2NYGAf0llFRiIUKerW X-Received: by 2002:aa7:d50e:: with SMTP id y14mr10039364edq.346.1621589310006; Fri, 21 May 2021 02:28:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621589310; cv=none; d=google.com; s=arc-20160816; b=DUSwD1BfnHzgL9uGXacxD7i/8MKTGEhETZwl6qhoKPRgYi04zQydhb3GBRTRV2xWTC LVZ8zrIJHUXnRTt6RzS9S78NOBA4Y9IN+RUXUwpLiz09S9a3FdmFIdS8noJJ1yNNAc3D 9+vDsoDxi7bKNllcTzTwNMMMjBDzVKb7UeFrvKdXFJyLHZJ2vn8/7ucjev7N74NNUjt8 09f2wFSl/rpt0f3sS6py23veCZsW7BdzFX4FeW4RfUnKrzxnXKfNkOEyv8LaQRi63A1y 9/lZO+8nM2Wizu6kIwzLHIF5BzBLl5O47fg797SbYvCp3nNMeJAtlZMBRpynv8E2gTYJ 8pew== 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=MpsdJY3ZMz7W2ekIk9E5am1OQIkToY8FuvY2gz0254A=; b=AXPhplTf2Mgolnifg6viuok7R7m3/jV04PRzmymD4V7bDXuzcPtYQNF4Puuwk8caZx lRdo3ncmkBQlWNXfYp4r46Id7hZtnSDTJbyHIRB+w008MoD45+mkrJbZbRcjsoTCujzb RJf7golxs42iOY7Jc4TBETuQmHRq1gsPTCzkSploqppLOqMJyGagk/Q3JjKEuBsUva/6 ucxUcWo3lhCuhWsL5A14G7+W/WKL28mhftfN8ne0N6Oy3gHmaicaAmU2clwiNqmFDS87 iMbrdFzaANKT3pFoJMWMJOFzx7XN/GM9EEY4Wc/rvVkKF0dncCMHvAVn4OyM2ddm1evz +jkw== 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 s13si4929723eju.675.2021.05.21.02.28.06; Fri, 21 May 2021 02:28:29 -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 S232440AbhEUCnk (ORCPT + 99 others); Thu, 20 May 2021 22:43:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231681AbhEUCnk (ORCPT ); Thu, 20 May 2021 22:43:40 -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 DF61FC061574; Thu, 20 May 2021 19:42:17 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: krisman) with ESMTPSA id 984641F43D66 From: Gabriel Krisman Bertazi To: amir73il@gmail.com Cc: Gabriel Krisman Bertazi , kernel@collabora.com, "Darrick J . Wong" , Theodore Ts'o , Dave Chinner , jack@suse.com, dhowells@redhat.com, khazhy@google.com, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org Subject: [PATCH 05/11] inotify: Don't force FS_IN_IGNORED Date: Thu, 20 May 2021 22:41:28 -0400 Message-Id: <20210521024134.1032503-6-krisman@collabora.com> X-Mailer: git-send-email 2.31.0 In-Reply-To: <20210521024134.1032503-1-krisman@collabora.com> References: <20210521024134.1032503-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 --- 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