From patchwork Thu Nov 21 11:22:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kara X-Patchwork-Id: 13881874 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1F16FD6ED0B for ; Thu, 21 Nov 2024 11:22:47 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2E8166B0093; Thu, 21 Nov 2024 06:22:30 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 007636B0098; Thu, 21 Nov 2024 06:22:29 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C65A06B009A; Thu, 21 Nov 2024 06:22:29 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id A8F666B007B for ; Thu, 21 Nov 2024 06:22:28 -0500 (EST) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 5E622A11BF for ; Thu, 21 Nov 2024 11:22:28 +0000 (UTC) X-FDA: 82809862758.05.0262ED8 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) by imf27.hostedemail.com (Postfix) with ESMTP id C2EFA40007 for ; Thu, 21 Nov 2024 11:21:29 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=none; spf=pass (imf27.hostedemail.com: domain of jack@suse.cz designates 195.135.223.131 as permitted sender) smtp.mailfrom=jack@suse.cz; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1732188053; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Qox2y+ade7BbMPRcCPWvPDqrktL5vAclz8SkbpyLFhg=; b=2Ikp5elj5oEYn9OhBxeRtQIo7s+vMlXvZl7LZ4iCqy2+Q1B49AHHQKdbfwCEA0Vz1mDQLs Vg30HGfHvsEkhbeCDSXVLS1CSM1Dy+ig0Bf9oPlrD8DEM44lz9+lg78jFU9IJvcl+VxFDH NR8PlsF/+Eu9FlHTNnUHaTFO8WkPP50= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1732188053; a=rsa-sha256; cv=none; b=V/XJg3+w3rjBNAlVgxuPaIIticon/aOg/vmDxf/h1ACST37owfOY6PlE1y2GOEjA43iEL5 iZxZ8q3Iv7RQLfVDWyo5hltJlESW9dTheoGVeVXuuVsDr43G81zpUYwMswjhhVSVZZbqNn u8x8Ckwv9qxeWU3jT8GAYA8wg4+qSJE= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=none; spf=pass (imf27.hostedemail.com: domain of jack@suse.cz designates 195.135.223.131 as permitted sender) smtp.mailfrom=jack@suse.cz; dmarc=none Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 7BB5B1F7FC; Thu, 21 Nov 2024 11:22:24 +0000 (UTC) Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 6A70913ACC; Thu, 21 Nov 2024 11:22:24 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id Sgz7GfAXP2cwfwAAD6G6ig (envelope-from ); Thu, 21 Nov 2024 11:22:24 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id EC981A0904; Thu, 21 Nov 2024 12:22:23 +0100 (CET) From: Jan Kara To: Cc: Amir Goldstein , Josef Bacik , brauner@kernel.org, Linus Torvalds , Al Viro , linux-xfs@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-ext4@vger.kernel.org, linux-mm@kvack.org, Jan Kara Subject: [PATCH 06/19] fanotify: reserve event bit of deprecated FAN_DIR_MODIFY Date: Thu, 21 Nov 2024 12:22:05 +0100 Message-Id: <20241121112218.8249-7-jack@suse.cz> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20241121112218.8249-1-jack@suse.cz> References: <20241121112218.8249-1-jack@suse.cz> MIME-Version: 1.0 X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Action: no action X-Rspamd-Server: rspam10 X-Stat-Signature: o7pupuw65u36swhnpo4i81qaxh1tywkt X-Rspamd-Queue-Id: C2EFA40007 X-Rspam-User: X-HE-Tag: 1732188089-254212 X-HE-Meta: U2FsdGVkX19v4fYg6BCtiwQcqT0SlwqG1DJdN2Boct58xzfO6+wd5fYX+SfJeaDQQOawCFly27jPuAfanxI/NwfnUKCRO8PnpO+MQgcYKJQniDy4sMYb6K+mo0FBev/YbfBrtz5m3xgyyC2/wnLBgIPzHjjWUuZ0g2/JgqohtbekmDjj8/c+P+O1FEUJNMKF0i4NlessCiTJj597kF1m8a9kWsQuTKxGNUw6/OginD9ElniU3opF7Om7wJkkeQCVJf5SB837MJyN4KCcZ3RlLC/gEmTwClBUxK0hdrDTFgpLZuyzku65y2v5hbXa1ZjjFpOh5FBmDb2osuiWO3Lseak4xnicM2AIZ1AXU1rI9crMVycR+UdLrHaMJ+ldtVBVg8H2tqArnDYjXGMuYbPVVWgG0t3HBiSdWUz66VBZqB/6FyrxRdu8ML9qOvvUpn5ZUWhr21FFNdRzcuKv0cgm2EB6I+wuPN8nvFtqDjSaW7aLaYarTdZsrS3rw4T/e2zKlqfvatkx+Hd/frYIHUNYsOXUy5rGWfgFvkOA4+4Iep1VnqVe3kVxAxj6oEEk0R+QQysJvOmT3PPyE/ZXXOvzlfwCrJ4Lc0xbDeCXSdc4wUzAtOeZKK1GbZkDLTe2VfeXVPdXTaEJWk+UU9DSsfpdevjsHOleboXGeg+1q9NQtS0hD7JLnTx9BrFykaeVGFTFPiDE3XzVAXghU+/PeuQVPt3on9n7tGPa34h7PLrqLuhrKOKhK7RnMeYocISS4vhokSTKXZagZ1s2t2gj1n9UKr5pxybU0MgLJyGBY80RnWFYrR5Bvy7xQO5xUsNNcsEaSmMKnr5iDmXcHBhSY3FLSs0X6ZQPgmhMNf738VOWgcpCsBnAD34bekyzHAzNobnXLY9m/1JIAG1NhFgnHyku4+havc8LTvQt6u6o9NmeSgBlD/XbqcyJWHRy7nN9Ecrf16Zo+hPyzRfjmZUvfq6 tElx9UQz O5MHDcblUzSOmSy5llTNrbKLUDPo5D2jFeUkLNTMVk2yu2STzbsmGXKjiwq6wgPM37yumxb8u3jCseYqID8yQT7Xu22d+lJyMGYtwumMaHw+4WQDzY4+3HKv4cObpj0lq0Rpvx6HfBPSpTeep3x6cEI9EFMNjnDi0bSSMn2aHay6LAoSKQBmIaJw0HR939OrXAEpLia80kCDYjDoVbJFlj7JPjOni4Gcwx40BQwkMytkWmHMdss63D7Wrrlhmtr91ZHyUTgXc9b3eAF5NWFxoFCIYPDH9Ry6U4MIvRT5E3TmBZ5WpoB0oTj0b0NhDrtjHT6Gg X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: From: Amir Goldstein Avoid reusing it, because we would like to reserve it for future FAN_PATH_MODIFY pre-content event. Signed-off-by: Amir Goldstein Signed-off-by: Jan Kara Link: https://patch.msgid.link/632d9f80428e2e7a6b6a8ccc2925d87c92bbb518.1731684329.git.josef@toxicpanda.com --- include/linux/fsnotify_backend.h | 1 + include/uapi/linux/fanotify.h | 1 + 2 files changed, 2 insertions(+) diff --git a/include/linux/fsnotify_backend.h b/include/linux/fsnotify_backend.h index 9c105244815d..c38762b62bf1 100644 --- a/include/linux/fsnotify_backend.h +++ b/include/linux/fsnotify_backend.h @@ -55,6 +55,7 @@ #define FS_OPEN_PERM 0x00010000 /* open event in an permission hook */ #define FS_ACCESS_PERM 0x00020000 /* access event in a permissions hook */ #define FS_OPEN_EXEC_PERM 0x00040000 /* open/exec event in a permission hook */ +/* #define FS_DIR_MODIFY 0x00080000 */ /* Deprecated (reserved) */ /* * Set on inode mark that cares about things that happen to its children. diff --git a/include/uapi/linux/fanotify.h b/include/uapi/linux/fanotify.h index 34f221d3a1b9..79072b6894f2 100644 --- a/include/uapi/linux/fanotify.h +++ b/include/uapi/linux/fanotify.h @@ -25,6 +25,7 @@ #define FAN_OPEN_PERM 0x00010000 /* File open in perm check */ #define FAN_ACCESS_PERM 0x00020000 /* File accessed in perm check */ #define FAN_OPEN_EXEC_PERM 0x00040000 /* File open/exec in perm check */ +/* #define FAN_DIR_MODIFY 0x00080000 */ /* Deprecated (reserved) */ #define FAN_EVENT_ON_CHILD 0x08000000 /* Interested in child events */