Message ID | 46960dcb2725fa0317895ed66a8409ba1c306a82.1731684329.git.josef@toxicpanda.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 59171D68BC6 for <linux-mm@archiver.kernel.org>; Fri, 15 Nov 2024 15:32:23 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 84D5E6B00AE; Fri, 15 Nov 2024 10:32:13 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 7FC586B00AF; Fri, 15 Nov 2024 10:32:13 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 64E546B00B0; Fri, 15 Nov 2024 10:32:13 -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 4102F6B00AE for <linux-mm@kvack.org>; Fri, 15 Nov 2024 10:32:13 -0500 (EST) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id E937C81986 for <linux-mm@kvack.org>; Fri, 15 Nov 2024 15:32:12 +0000 (UTC) X-FDA: 82788719706.11.6C899E2 Received: from mail-yb1-f169.google.com (mail-yb1-f169.google.com [209.85.219.169]) by imf16.hostedemail.com (Postfix) with ESMTP id C6D3F180017 for <linux-mm@kvack.org>; Fri, 15 Nov 2024 15:31:25 +0000 (UTC) Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=toxicpanda-com.20230601.gappssmtp.com header.s=20230601 header.b=KKnF1Kvo; spf=none (imf16.hostedemail.com: domain of josef@toxicpanda.com has no SPF policy when checking 209.85.219.169) smtp.mailfrom=josef@toxicpanda.com; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1731684585; 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=Gek1GO8SPggpZ3MPgZMTTjA2lPqNZurY73wIWpdWbQQ=; b=OiDpn1+bxxqKQo7vcAZeoJWr8axq45NcMhTxkH7SHXu1u5+OWzew1//BEolovpF65cNSel QMIoRvM3CQNdyOeeLnJ3f4X9znxkZmlLAC4d5wq2yXckLmYrumd0iFVBpTUndZJ/of4/Cz KH5tQRCDRw6EzWr5BDzJPCoDv7CiXEw= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1731684585; a=rsa-sha256; cv=none; b=GXz2gKhWOkeZQC57dgXdR51+B9sVXhdSyf2d4TmfFJHAb+cnxP2gCUqP9jUH8D1dVZ4mQS foDvbFWJ7qbDasK+UJMVZiGu3JQ4z74ZmmYLgCry1QJae+KsF+o4NJwrwGS9qPuq8Xniih XxyuImeV9cSaZxhkauSHFbs6q0Utvrw= ARC-Authentication-Results: i=1; imf16.hostedemail.com; dkim=pass header.d=toxicpanda-com.20230601.gappssmtp.com header.s=20230601 header.b=KKnF1Kvo; spf=none (imf16.hostedemail.com: domain of josef@toxicpanda.com has no SPF policy when checking 209.85.219.169) smtp.mailfrom=josef@toxicpanda.com; dmarc=none Received: by mail-yb1-f169.google.com with SMTP id 3f1490d57ef6-e35e0543b07so1847925276.2 for <linux-mm@kvack.org>; Fri, 15 Nov 2024 07:32:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toxicpanda-com.20230601.gappssmtp.com; s=20230601; t=1731684730; x=1732289530; 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=Gek1GO8SPggpZ3MPgZMTTjA2lPqNZurY73wIWpdWbQQ=; b=KKnF1KvoU74btQ38zrpGmPBuLSR/cFlLbeR94pPYd+cNN4pUjzDZqWpm9imBvXxDrW 6dD7a3aWHDE7Lle81eM/TbViyay/omiXvBD/awylfZNNqoCkrRA8EBGK9jU4XNuG0Lgo I5QOLaMyWeN2TyerVQdLXZ2pPt0stH91f1ZtIK0ABUru+DfSyX2E82GAFjY+EHnGrKpi TZRJQeFNUGVkXWyPFxl4ttbLKWXax3yfRYs4Er4I2S+mjS7gLf+OhFt/Gw8yeduJ/7M/ WXFCnGNEieKfeFkuQ187QzRNuRtH8skj04jv33GgS7lRGgn7vMTV4X3pGimfg8QIXas9 WcYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731684730; x=1732289530; 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=Gek1GO8SPggpZ3MPgZMTTjA2lPqNZurY73wIWpdWbQQ=; b=wEphhtVu7xBw2EWj3FNwg+xs5B8l5S1hprY3d20KOT/SOtdlEkANknbq9LZxv8el3H EL6XEK43XtpmDNdLBE+emm6gi+0lbsMUBu7ix3KLt4zWadd4/wr//qDPRejjzF+KQno+ 6t86S1S7Y+MXsVac4HqjZV2aE/DIDl4/d4rTvBx8DAT7Q0qNnYK8vkHRWZ4WpwxlVlRS 7cQJGUBhndXlk/JPJK2dhjmXWB464TIECmXNwfNA5FbVuZgpwy/V+KvJxhqQCVioS+e2 ban+biUUopiACeMqFuWeD4KkxVelEFTjSpaSfxJZ4Wyp98N85BF7En0P6GP0L/L54BjB Dr7Q== X-Forwarded-Encrypted: i=1; AJvYcCVmueq7GUUtV0BW9/QtJwcb8XdsX9bvF/Iig6hKg4ve7E2EWnAAAeDOTmG6SEJ0HbkDaqiVl5V/Yw==@kvack.org X-Gm-Message-State: AOJu0YyIUWU+QANS0EW0z3zijIfpvZPAiN6DF048SzB7nUj64nXRuc9S sTsAfGOhlRpwyDEGI5f+TpDEDDWZtcfNXfRzldr2irAu9YVhLogu+nDy8hwcW77BOo+NVRJGc4P k X-Google-Smtp-Source: AGHT+IEUcKBXNGC+FquadsfHiR9BI4UoMJrmZkBZaObeXyKm9EGd5wreVNWR6wH/jakvp0EFNSF0lA== X-Received: by 2002:a05:6902:1209:b0:e30:c977:a360 with SMTP id 3f1490d57ef6-e38261291fdmr3157574276.5.1731684719039; Fri, 15 Nov 2024 07:31:59 -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-e384121a605sm296041276.52.2024.11.15.07.31.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Nov 2024 07:31:58 -0800 (PST) From: Josef Bacik <josef@toxicpanda.com> To: kernel-team@fb.com, linux-fsdevel@vger.kernel.org, jack@suse.cz, amir73il@gmail.com, brauner@kernel.org, torvalds@linux-foundation.org, viro@zeniv.linux.org.uk, linux-xfs@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-mm@kvack.org, linux-ext4@vger.kernel.org Subject: [PATCH v8 19/19] fs: enable pre-content events on supported file systems Date: Fri, 15 Nov 2024 10:30:32 -0500 Message-ID: <46960dcb2725fa0317895ed66a8409ba1c306a82.1731684329.git.josef@toxicpanda.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <cover.1731684329.git.josef@toxicpanda.com> References: <cover.1731684329.git.josef@toxicpanda.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: C6D3F180017 X-Stat-Signature: 631hckoaeqdpfdu335i8wpkx8kf6p9an X-HE-Tag: 1731684685-976645 X-HE-Meta: U2FsdGVkX182YEA9BroDD2Pm3MCZbC8LQX9nDbmZlaICc0ks92X1iuhl96AaSnswQ5Mpm7wH8km3BmMLgwXe+o9Jlnvuyn6/OGCP677AP4aQ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th3DoXUIsF7z4dkNOX7PoV9LhbUxGj2YXZIWsBDxdVTGWzTTaAPMl2cmUoE3iVMBNkcYwuE+USAjunxXKG4CU5wDctS3w9xym+WAvhj6ZR+rCUBey+emlJmjucDKCTlTB8I/CX8ySoqIhfYt7vH+KVzan+aaM7ji2S++mcq4um1oAKUNKHrX7QLoSVAQWI3CfE+hYNtE6Ea40dfk3x/S8TuhIBTdUd6Aw88aFVHssokmrTpqyn5uU8TZ4h79dDbjAfmR4d8MiX/2G3vUaimghNL3NFHDPHOwKAep/W0uEwW5EzRXt1dFf1BREgA= 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: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
fanotify: add pre-content hooks
|
expand
|
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 97a85d180b61..fe6ecc3f1cab 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -961,7 +961,7 @@ static int btrfs_fill_super(struct super_block *sb, #endif sb->s_xattr = btrfs_xattr_handlers; sb->s_time_gran = 1; - sb->s_iflags |= SB_I_CGROUPWB; + sb->s_iflags |= SB_I_CGROUPWB | SB_I_ALLOW_HSM; err = super_setup_bdi(sb); if (err) { diff --git a/fs/ext4/super.c b/fs/ext4/super.c index b3512d78b55c..13b9d67a4eec 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -5306,6 +5306,9 @@ static int __ext4_fill_super(struct fs_context *fc, struct super_block *sb) /* i_version is always enabled now */ sb->s_flags |= SB_I_VERSION; + /* HSM events are allowed by default. */ + sb->s_iflags |= SB_I_ALLOW_HSM; + err = ext4_check_feature_compatibility(sb, es, silent); if (err) goto failed_mount; diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c index fda75db739b1..2d1e9db8548d 100644 --- a/fs/xfs/xfs_super.c +++ b/fs/xfs/xfs_super.c @@ -1713,7 +1713,7 @@ xfs_fs_fill_super( sb->s_time_max = XFS_LEGACY_TIME_MAX; } trace_xfs_inode_timestamp_range(mp, sb->s_time_min, sb->s_time_max); - sb->s_iflags |= SB_I_CGROUPWB; + sb->s_iflags |= SB_I_CGROUPWB | SB_I_ALLOW_HSM; set_posix_acl_flag(sb);
Now that all the code has been added for pre-content events, and the various file systems that need the page fault hooks for fsnotify have been updated, add SB_I_ALLOW_HSM to the supported file systems. Signed-off-by: Josef Bacik <josef@toxicpanda.com> --- fs/btrfs/super.c | 2 +- fs/ext4/super.c | 3 +++ fs/xfs/xfs_super.c | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-)