Message ID | 20241121112218.8249-19-jack@suse.cz (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 0D7D6D6ED0C for <linux-mm@archiver.kernel.org>; Thu, 21 Nov 2024 11:22:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DAD486B0098; Thu, 21 Nov 2024 06:22:31 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id BF32E6B009F; Thu, 21 Nov 2024 06:22:31 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A197C6B009A; Thu, 21 Nov 2024 06:22:31 -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 7D76C6B0096 for <linux-mm@kvack.org>; Thu, 21 Nov 2024 06:22:31 -0500 (EST) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 3E723C11C3 for <linux-mm@kvack.org>; Thu, 21 Nov 2024 11:22:31 +0000 (UTC) X-FDA: 82809861414.03.D10BC91 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) by imf04.hostedemail.com (Postfix) with ESMTP id 9EA5B40003 for <linux-mm@kvack.org>; Thu, 21 Nov 2024 11:21:22 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=none; spf=pass (imf04.hostedemail.com: domain of jack@suse.cz designates 195.135.223.130 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=1732187902; 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=JTpCRn/BelYtHmNFCcL1G3Iy82rW8zreFuNx6ZlNd18=; b=VE8tetAlowPmQ+1AUGrmwcSnO7vpPmW5A7Y8nLFwYKnij7IXA6ubUUIjSvXqgC/DjlWuU0 ne9Bk28Tg4b82i4L4u4WhjVmOu49a1xWTB/l7Emu4eoinjiuzHVHjdfrdyk3D2c4vDL4Xr sMV34Bv9dBSzMv1lqZJi7vXg84yGV0M= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=none; spf=pass (imf04.hostedemail.com: domain of jack@suse.cz designates 195.135.223.130 as permitted sender) smtp.mailfrom=jack@suse.cz; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1732187902; a=rsa-sha256; cv=none; b=RqCzllWLz5QKO44GASZZHd5SJj28FWE5WNMWMjC2VzO8RnpOnDlIZf/ckc239k5BRA7TFh 649pc0HlAuXZzryWmz0SdHPKqPyZJWv3SBXE2FXzIrBo2jdS3NyXwL8dKfSz9Tn44LiICK c9J7DZMWF2BJQswf9MKP+KPdy6wCs48= 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-out1.suse.de (Postfix) with ESMTPS id C371B21A08; 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 B84CD13AC9; 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 PLv0LPAXP2dLfwAAD6G6ig (envelope-from <jack@suse.cz>); Thu, 21 Nov 2024 11:22:24 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id 57F1BA0931; Thu, 21 Nov 2024 12:22:24 +0100 (CET) From: Jan Kara <jack@suse.cz> To: <linux-fsdevel@vger.kernel.org> Cc: Amir Goldstein <amir73il@gmail.com>, Josef Bacik <josef@toxicpanda.com>, brauner@kernel.org, Linus Torvalds <torvalds@linux-foundation.org>, Al Viro <viro@ZenIV.linux.org.uk>, linux-xfs@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-ext4@vger.kernel.org, linux-mm@kvack.org, Jan Kara <jack@suse.cz> Subject: [PATCH 18/19] ext4: add pre-content fsnotify hook for DAX faults Date: Thu, 21 Nov 2024 12:22:17 +0100 Message-Id: <20241121112218.8249-19-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 Content-Transfer-Encoding: 8bit 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: rspam06 X-Rspamd-Queue-Id: 9EA5B40003 X-Stat-Signature: burqun5dnt67g8y1xd4gph7k1meg6w1z X-Rspam-User: X-HE-Tag: 1732188082-914286 X-HE-Meta: U2FsdGVkX1+FMgNbhEk3Kx6fxMF3DjJ6g/ArI9I0/GNW4cIT1CGNf4dwqyUkUr++zQ6K0yPQ4zawQplenDDciF+5coZodo1MwVwwcz+X25FpMOQrAb2t3J24xCjTQ31deuHB4RldxEHz4xHoej/gLbqZ1uq6itm0VKqEF0QAESCPxFijx4tPVsiprR8kBiBaTJR0AFU0E0epx9dvUntAgegrwPR8D2kup60kB9KYaSxgsX9L9ZPM61pdv+36NnnlxORTbqnCKM/v5v2oXluKlyRwK/iOGbiu/QQqCyIqTixaj//EwJUNJwiJ4FIS24SUY0mtdS5pYghcFq3c0u20WQAO+eJHSHOqmg7BDewpQXsIWZUQuOagEdXzQzHJGQUc6a3sjJ2W9+gaTHveLiuonFfzbzuB4tGJInRDHcgZc4reC0Ev9AG3vcleB6z+0i2foqmdl60G9nifCDeVOQtvCeko0yT3/6nnjrLNAWf3Yz8L8cUc2Lhy++07dzG/6cHdp77jZhoXSwZT3W5Mr/4XmGzHNB+Bh0KHYOLnyvu+c/nwoXTe73GxP8tcxxXj7RcCcXDelu7t/4YHKi9yzasxeT2ZaojsUNu5zbztCUg1+VrtBGRlzkonPx8DwFcaCL42v+b7zf0a0guAB3t91k5ZtcVxCB1f0V/OyBYbKNp8KK+QMvHuhV1SMKBUtLXvcWfMSNQrk9Ga8LZLKVnNierJi3j78PZLmdifz1sBct2tA5G2Zwq67nYM/OS6lUuwrsYMeGsSrUmOmkqb5Pce1gU3BPZzXid+VQHKJvpvEMOA9Qou99Qo2JNhuxKyfdQ1P0CGsgxlKN8IXYuFGQVS9fmn5OPlocuxcNLpJikQ5gNwp/+RNbqKniMrGHOCLSub2VKaNUG+QNKu1GOHbdpH//VfQyRDU4pvYnHrrmSxvn1QZidrLPk4jMUJjVRzAiQZTqrKVHwHZ9viePRA8KN1zBG sfccGCqy gQG9Ib26b8IUc0ZXMNfRI8sb7MfbH10dc8PkyS8piVwm95Vge5DguoZBzjJt8PRcWX+qCtm4hECxhn1DrRHevOTkrYrh46GlR7EZe 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/ext4/file.c b/fs/ext4/file.c index f14aed14b9cf..07946bf67944 100644 --- a/fs/ext4/file.c +++ b/fs/ext4/file.c @@ -737,6 +737,9 @@ static vm_fault_t ext4_dax_huge_fault(struct vm_fault *vmf, unsigned int order) return VM_FAULT_SIGBUS; } } else { + result = filemap_fsnotify_fault(vmf); + if (unlikely(result)) + return result; filemap_invalidate_lock_shared(mapping); } result = dax_iomap_fault(vmf, order, &pfn, &error, &ext4_iomap_ops);
ext4 has its own handling for DAX faults. Add the pre-content fsnotify hook for this case. Signed-off-by: Jan Kara <jack@suse.cz> --- fs/ext4/file.c | 3 +++ 1 file changed, 3 insertions(+)