From patchwork Mon Nov 11 20:17:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josef Bacik X-Patchwork-Id: 13871221 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 5A64BD3ABF6 for ; Mon, 11 Nov 2024 20:19:17 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 674266B009D; Mon, 11 Nov 2024 15:19:15 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 620106B009E; Mon, 11 Nov 2024 15:19:15 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 496696B009F; Mon, 11 Nov 2024 15:19:15 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 2ABF56B009D for ; Mon, 11 Nov 2024 15:19:15 -0500 (EST) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id D524841BA9 for ; Mon, 11 Nov 2024 20:19:14 +0000 (UTC) X-FDA: 82774927326.21.02D37A9 Received: from mail-qt1-f179.google.com (mail-qt1-f179.google.com [209.85.160.179]) by imf21.hostedemail.com (Postfix) with ESMTP id A711D1C000D for ; Mon, 11 Nov 2024 20:17:55 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=toxicpanda-com.20230601.gappssmtp.com header.s=20230601 header.b=g6cENZCH; dmarc=none; spf=none (imf21.hostedemail.com: domain of josef@toxicpanda.com has no SPF policy when checking 209.85.160.179) smtp.mailfrom=josef@toxicpanda.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1731356266; 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=GQTiDwIsgL2HpIJgqOsWIueWm65MeK2S87OGTFMOe/cC4kly6hidKCK+2uWrGZX/d13tug U5ouqCDpOT8j863yDpiWHW73CjX8Mi9O6VZCj2fqsLm8dEFPapT7u7cJhfcB3F1wh/Pbfn bagElwb0UTY120x7GmdT2P75+vbMDcM= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=pass header.d=toxicpanda-com.20230601.gappssmtp.com header.s=20230601 header.b=g6cENZCH; dmarc=none; spf=none (imf21.hostedemail.com: domain of josef@toxicpanda.com has no SPF policy when checking 209.85.160.179) smtp.mailfrom=josef@toxicpanda.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1731356266; a=rsa-sha256; cv=none; b=iImTOTOxCpDW7zykH36USXGEFQEEzVgh153PZjspJAkQIwvBDT3Py9kUV9uy0z6bCEBst6 aBXhiULf2MCd50OBAS6D7N53+3vSjppg29vR3ma7xXgLe5euAQFG+69JxeDsnT7x9605on DtItOIk4iMsS3BULyV3I+39Qq6vUjDc= Received: by mail-qt1-f179.google.com with SMTP id d75a77b69052e-460af1a1154so33125261cf.0 for ; Mon, 11 Nov 2024 12:19:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toxicpanda-com.20230601.gappssmtp.com; s=20230601; t=1731356352; x=1731961152; 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=g6cENZCHrw9CsxyxZ4Qb7AZE/4heXxOlRTqNY20C+m/z8HBb4ydnXc3T23uiO/c/un rBxraA6MHzcGePepzEG4k6SQETZUgfF4zJNLySyOeJ1WninOR5d2pgiCny0BnJZON63y KHL6NS/Hj+zlDl7dG0DZErYaND6XGLFf/DV97TFpoyZfG4080CyOTRnPF2j+Op1yyGP/ 7vnLT5jtWGkfg1elx56p3rz5FBkx5zORX2VO7+I+gYxr6r3SmvsbPLT6hESKIZ/1mY0p 0NnNzP1d2PUneGA27H3WX29ItyznPMQCrVTQL9Z4m0pLtULL96AnCDvdXoX8ZXE2fsGh NKYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731356352; x=1731961152; 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=ntKt7/G7MP3bZ9p14THD3Ck+vRjRxbrLsAX8SRpMW53RZ3O3eDn/Lbdl82TfHhvpk/ fNetTPG1MKOaqaagnMsk7DZ1rsEyzpnt6Ug4fxcl63AWlCjpZuWwsf1MuUrHZkgWeWOM BlxiFBm7uzMNn3/JSCA3p2vW6P80OumgRgG3zPYEawek4YlpI/nol254Uh+T3drX31R1 xuUwGjekE2OjgY1MSKi0RBMQyzDQsK4iHJ9/oC/Rbllb8A11qzV8ZrjPYyqUnBc86Zuc MW6tnTk9J9NWeuBEtTaQ6aHRTaiH21OKvaBHn8+Y8qsGP4NxYe3vN9fATd66eNzuVFTW G67A== X-Forwarded-Encrypted: i=1; AJvYcCWG1pOK7h4rkxKc+ud7vQWMJQsQFKToAGzkCWDhuLzGj7fhLPtjniKDOycKW8LQMERqPXbva0MBbA==@kvack.org X-Gm-Message-State: AOJu0YyMIx5f/QORAKbEZQZ995bocy1rBgZnzy6mvKqD+GLsroTRGv4G Qrl3npgBkuxZoSy5xnd6y8mTQGRjOel7ypp/g1xL+r1uElIu1zRZcStCqVp4u6c= X-Google-Smtp-Source: AGHT+IGJ1y9f+W3Xzh+MP+v/BdPhaguxeBsLZfL0+LeTficfSUhpJzafSU29+3SIM79iI497xnnP7Q== X-Received: by 2002:a05:622a:189d:b0:461:123:d168 with SMTP id d75a77b69052e-46309415f15mr198172601cf.50.1731356352177; Mon, 11 Nov 2024 12:19:12 -0800 (PST) Received: from localhost (syn-076-182-020-124.res.spectrum.com. [76.182.20.124]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-462ff41b63fsm66638381cf.23.2024.11.11.12.19.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Nov 2024 12:19:11 -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 v6 03/17] fanotify: reserve event bit of deprecated FAN_DIR_MODIFY Date: Mon, 11 Nov 2024 15:17:52 -0500 Message-ID: <0ac31d4ce175116ee220bc3e1deb0f437ac03ea4.1731355931.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: A711D1C000D X-Stat-Signature: 8jyisgrm8493rbpw55a55b6dnht99ipu X-HE-Tag: 1731356275-981424 X-HE-Meta: U2FsdGVkX1/PsLbEK5JcVQNuE3qtb9PY9//c1M9qMK+7+mgp/OlcHeCWuomqcwUqQePwnKbtJBH/z23KQrOsvWbr3atG4CFMJg9MQp2WZ73TW0GVYRhAkiuew0UtUKZJ7/YDUSEfDTFsycxeVMWTJo1V4GB/qSpeD4GM8ka0bmMUefXakP0qYIghriBvg3BW2yi6/tjXRB0yna1Xc5Ja++SeXo/e8O7y4vVFI1ufEU31GdfRA/g5XFk05Bd+G2bwrOYWoIzzMo6MjdCojspBKlGq9abJp6kx74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ity: 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 */