From patchwork Tue Nov 12 17:55:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josef Bacik X-Patchwork-Id: 13872730 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 0A0E5D42BBF for ; Tue, 12 Nov 2024 17:56:41 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A3EB66B0095; Tue, 12 Nov 2024 12:56:37 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 9A10B6B00FF; Tue, 12 Nov 2024 12:56:37 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 81BE56B0100; Tue, 12 Nov 2024 12:56:37 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 57FFD6B0095 for ; Tue, 12 Nov 2024 12:56:37 -0500 (EST) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 07818C04D5 for ; Tue, 12 Nov 2024 17:56:37 +0000 (UTC) X-FDA: 82778195892.13.CE0EF22 Received: from mail-yb1-f177.google.com (mail-yb1-f177.google.com [209.85.219.177]) by imf08.hostedemail.com (Postfix) with ESMTP id 4558F160026 for ; Tue, 12 Nov 2024 17:56:07 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=toxicpanda-com.20230601.gappssmtp.com header.s=20230601 header.b=trLXm8Kg; dmarc=none; spf=none (imf08.hostedemail.com: domain of josef@toxicpanda.com has no SPF policy when checking 209.85.219.177) smtp.mailfrom=josef@toxicpanda.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1731434108; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=c28yJdRjKgJn+HaLKJzmXzT/1RpIgNKOoAPY3XeErlk=; b=z1VnGRefrgZAXxv4FgfFGPuL45iC+uWMy2xfuG/FXK1VyiSftfaEqnceXj89cnbIyOrcY4 O3FKI7dpTJLOn/nzM9VTDn4rC5BIu79ku1J6DaNgX2LFKqt2gQTsxjFbheAhgldHX2gBAv MlSkjwMnXer4KHTbRPP2XgG5wkt6ls4= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=pass header.d=toxicpanda-com.20230601.gappssmtp.com header.s=20230601 header.b=trLXm8Kg; dmarc=none; spf=none (imf08.hostedemail.com: domain of josef@toxicpanda.com has no SPF policy when checking 209.85.219.177) smtp.mailfrom=josef@toxicpanda.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1731434108; a=rsa-sha256; cv=none; b=wSiNjG3jt8FAQ0zr035tHFJez3jqT//9J9HjWPOFyjLL1CqgtsETqWFiM5VKQdYM+3lywp yfDUerfaWQEBTxhmbR/RnjQLOmLuQ51EmK0m7ZXXYReGWOeNUir1dZzTxXBANI9wJy4hGe OSh9r+yr+mtGNlKWJUvIxInBXxJuipw= Received: by mail-yb1-f177.google.com with SMTP id 3f1490d57ef6-e35e9e993f9so421059276.0 for ; Tue, 12 Nov 2024 09:56:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toxicpanda-com.20230601.gappssmtp.com; s=20230601; t=1731434194; x=1732038994; darn=kvack.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=c28yJdRjKgJn+HaLKJzmXzT/1RpIgNKOoAPY3XeErlk=; b=trLXm8KgRvrs1tv7tFTWtT9QzT4pkH3xwzeybXioIg6PA80VoTFkm3WwYKiB1H78fb zaxU+F93alCneoXq/2IOYADg1LSvkP/JqRtnRTLWWt7///8dbaqkmh+6d6v9TEY108aH hgr5lnjsrk/3iaHNd6o+x2eb9hwXiQMJ0UGSWJLiYiT3WWHL5UNIduZ7lS9g6ed6xy2W wNj9CsDD+7RDARXaVy6USfTDkjZeiODyTz//8E1RzmElGEVKZ0TjxKWay9qPbqg53g/l ZB22+RhGMj1veH5maxfYVenyd3fNnOYeopw7XHwDWBOn0kAi9yPy3mzzGYwi66RvUXiE AWyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731434194; x=1732038994; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=c28yJdRjKgJn+HaLKJzmXzT/1RpIgNKOoAPY3XeErlk=; b=g5ql3reYhyulViQXpln4j7Mr5CInOIcLX2B8qJMAM/6w3xRHN3VupvPHBWEobCBdII 5tty15YNo2Hif7DLvkuCLAcFL2pt80lKMR2qFsGxXL7Yr1ClVFyP3gWnL1NUV37IcfQ1 x5RrrYR13nZHBx+gzhW6UdjOmDNF/ATlBE7Z6A9L7+RdJhf4Vl8+V8IU6Zxj+4zmmrtx 95eLLZxBFjXGya4a5TNNgWh8z/qzYXgZcslhjxTKrKblisV6eUDO9VzPi98gKLFOz3gT J/PspS+2YhDIjpzdrJvMRMw6XV2xQHd1M4nF7n7/WTANqeG47W3nE20dCm8cNTpeHbJh Y1FQ== X-Forwarded-Encrypted: i=1; AJvYcCWUtMOx+TFsSgWzKcPvMJ28CimGNUA3jQQWNFg4IBaiYqxmP65tOYNrC4a7NaEKA93q7cO+WtkUUA==@kvack.org X-Gm-Message-State: AOJu0Yxz4XFkKNCJvL5OjS+N0sPtWVXngg7rh3+eDi8L3RMEfiL0/6/C Jcelbe4G6zHGKZn7wH5Blaj1ahLq4nRlb6BfiKG2+9Ne95WburhwtdWpSMUgfTw= X-Google-Smtp-Source: AGHT+IGHOswKyJpRxtAUdSHm9RVyiLr7O2lKHvfik/aOxq8+Vnb458JxpogP2HSmvoOplu22cOYVQg== X-Received: by 2002:a05:6902:728:b0:e2b:dce5:9c93 with SMTP id 3f1490d57ef6-e337f844799mr17781398276.7.1731434194365; Tue, 12 Nov 2024 09:56:34 -0800 (PST) Received: from localhost (syn-076-182-020-124.res.spectrum.com. [76.182.20.124]) by smtp.gmail.com with ESMTPSA id 3f1490d57ef6-e336ef48465sm2752627276.31.2024.11.12.09.56.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Nov 2024 09:56:33 -0800 (PST) From: Josef Bacik To: kernel-team@fb.com, linux-fsdevel@vger.kernel.org, jack@suse.cz, amir73il@gmail.com, brauner@kernel.org, torvalds@linux-foundation.org, linux-xfs@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-mm@kvack.org, linux-ext4@vger.kernel.org Subject: [PATCH v7 04/18] fanotify: reserve event bit of deprecated FAN_DIR_MODIFY Date: Tue, 12 Nov 2024 12:55:19 -0500 Message-ID: <22d02743468d137aeb73dfbc7bef44efd361785d.1731433903.git.josef@toxicpanda.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 4558F160026 X-Stat-Signature: for83etb7mnrdgx44ntqu4weto5rxbxu X-HE-Tag: 1731434167-323966 X-HE-Meta: U2FsdGVkX19Oc1Q2HCTpbMWADU+0QJsnP7hmn+NUrnqkRpXfPFcwgRUkd6vnycF7HpMEF2G3wSs6+se6BegKjdYCjXGLxKxa1EQYWyBNWVXOyBJW0n5dSOBODst0fp0E4s1KPW+4A+hjLXx+cLeqrrlJkOFNAfjR1AamgeDYVi2bB8fwV1BLwDTeZgDSqGLlHtpi4dNutptTdohyC4P92UPz7xfDodn8gpiXPvBfYQ47nwMI0OzvmoVcU4O1nOT0GD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ncGXsPNCBnCrITl2591SUDGrcf9kAaPgWcMuRS+b/yknTqfd9eoRFuLBMFGANDHB1CGi/HtSimVrPvF9Bm/fNwrqwSxTFDalnOnQn3ED+uyyLdL2HqwewwXYRMguGs0GBi9qq2Yh36uQLPm9/F9m1E+lpRCm5UjwRjrwhS X-Bogosity: Ham, tests=bogofilter, spamicity=0.000082, 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 --- 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 3ecf7768e577..53d5d0e02943 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 */