From nobody Mon Feb 9 16:17:45 2026 Received: from mail-oi1-f173.google.com (mail-oi1-f173.google.com [209.85.167.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A3F1C396D21 for ; Wed, 7 Jan 2026 15:34:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.173 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767800079; cv=none; b=PItSl6/6o2xs+N8VI1hVQTyoP7nKCM1owERDo7Rno2LDZPVGvDcf2CR8zsLi780bVla542GJrHecsl6NHY9/DYdqODV5IYMp9pLq7gNf67/stBpfV8JNKDgpqk7RXzWa9c9xbOz0Dlgt7yIkog6V28O/PGK9JNQKVnrX+LSFr8w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767800079; c=relaxed/simple; bh=zQL6OSWBO4m5+Q/hEBIHqSQry3+21Rl32A58FZEFgEw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ozirkMbOegIVMNQL6qmqbqzastf1VOEF836x7hvQkTT1SxkzMAgUib57ssmdQxC4F76BQozmethYjqwDwkS1MfnTkdW1LS7dWRuvmeqfIxoaQtqgFtbxhyXKundihdUP1HPDHTMCu5p0DiPTBsIF+rIVj6P8Kmt7PGyNIsqFSwk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=Groves.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=JleWKWKK; arc=none smtp.client-ip=209.85.167.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=Groves.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JleWKWKK" Received: by mail-oi1-f173.google.com with SMTP id 5614622812f47-45392215f74so1095948b6e.3 for ; Wed, 07 Jan 2026 07:34:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1767800076; x=1768404876; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=BadRqtdIUTjJqSpAIjL5u97iCPqnyeMr+lfViz9uPAM=; b=JleWKWKKZILs4kfdIcm67y4G/+cPmDE8Eh9sSBPGt8bosmO1BQJxYUIciTesaGkZmH k0maEuJOCN1txO0Z7yGlpuIhvRNEsqbFmd1MSV5CW8soCIdpxxaBe86ybTym+zFpyLxS vOZqtX9lPTNxRb2WPcBCecXuBpGFS4wJqaugmG2/Wh2SGPQIR8A4dTj4KdU26/LSYrEI KUpnS2wdi35TkbpjN8hSHcToVQBtSn+585t54AkDJ0l3tCYLn/ZcRjYtr7GzXrxyQlns 42Br/b1X8Q6gPMm+2MwNgSjKbgq3skPX0nPs+yNOPlfJcVFHeLi1FlBBFX/seBcp6urb elfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767800076; x=1768404876; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=BadRqtdIUTjJqSpAIjL5u97iCPqnyeMr+lfViz9uPAM=; b=ePcQcqQ5m0CQ9BQnHHWFckfuEMvFIASkieyOPDY/3A4Uq30OzP0usGnyjVPHOP5QZ7 UEsGWyj+b3Q9Fq9Kw3mDk9gjvr29zStPsrzuJPxbQi7kGdz4NSvJnOrH11qvbWeRAymf rQQPw42c5FjEmu3FVDdtXfQBn94W8xs8BYoAr8sbBRF8p4A+sAoDgqJwjFHYzt2L+1Sk QGdUhHINds03EovQrHHdYzlRP+mUQhFLPCo0kKj6TUZ8shd6nTWO/ul7svtoPhRvRCSx M8t8ZgO+KhqtJydC+W5qb5hTZwM5UyClICoA/rXfjA6TSHDIPOXIuKpUjkHbXNL84WEu Jcpg== X-Forwarded-Encrypted: i=1; AJvYcCViw74o0a7f+KAmNiR9bOW1KAQPCSCCEOIaXBm22OfDCoF058Skk+y/cAQZrYhH3bSWiwKEMr3mZCVxa1w=@vger.kernel.org X-Gm-Message-State: AOJu0YzCgsSs7iFBmBEWyedlWIowZXIutK4Nio5AUJjA7L9yGaHoJ5MO oRJQ58Up8kykfXUvmjX8LTfHW+Oty3ZcLn3a7Uo0+X9V9LI6oOzLqoL5 X-Gm-Gg: AY/fxX4Oq/Uem/kEEYMFpW3yhc84esC5W3mA0qrmBPrtfpBzsPVpEsUrhyMtvQXErfH 8CdH4XjwhP7tcavsPSFGxh1dl0d5XMY6hd9NukGs7EXrnh/jzGbfiAkIqOu3pNvf7Rg0+Nav+4+ h8MILBGiPKajB3gExNuXz+ezJrVix8IRwBXh/BPl2NuEaoCzpYLm1bzZFzYaZyIxwsQPR1vUdtH rirkQ+B8iPD7H5WTQ/E3cDtSiLPNHNK0A6VKYZQ0fjVk5hGWf29HMtPvmSFv8ENJXm4oJt/SmC8 7tOYoyW7FTbvf6lLeyXdZFji63k02zoqjwIrtt06khfYzuBBZR7ZAK1MnSNFtbTgPCzbWCannSF phTekeACpSWXqQZHg4zzsK3R59tMrunHlV15TdVYTkHGa7YrDGCTnaag+L48CHvf3xoaMHRoEm3 i5GSLe8WpOifp1v7azCDeMJh1um7LeP1hGm+NlFBRg5k2Y X-Google-Smtp-Source: AGHT+IGiBgbbbwZi9OtjHC2lwZve1mJRhadFMJn6qeQ/EHq2CoD4bMYUWvkIfhWahXqGzzsZgFZhkg== X-Received: by 2002:a05:6808:2383:b0:45a:156f:dbcd with SMTP id 5614622812f47-45a6bf2a83emr1169537b6e.62.1767800076370; Wed, 07 Jan 2026 07:34:36 -0800 (PST) Received: from localhost.localdomain ([2603:8080:1500:3d89:a917:5124:7300:7cef]) by smtp.gmail.com with ESMTPSA id 5614622812f47-45a5e2f1de5sm2398106b6e.22.2026.01.07.07.34.34 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 07 Jan 2026 07:34:36 -0800 (PST) Sender: John Groves From: John Groves X-Google-Original-From: John Groves To: John Groves , Miklos Szeredi , Dan Williams , Bernd Schubert , Alison Schofield Cc: John Groves , Jonathan Corbet , Vishal Verma , Dave Jiang , Matthew Wilcox , Jan Kara , Alexander Viro , David Hildenbrand , Christian Brauner , "Darrick J . Wong" , Randy Dunlap , Jeff Layton , Amir Goldstein , Jonathan Cameron , Stefan Hajnoczi , Joanne Koong , Josef Bacik , Bagas Sanjaya , Chen Linxuan , James Morse , Fuad Tabba , Sean Christopherson , Shivank Garg , Ackerley Tng , Gregory Price , Aravind Ramesh , Ajay Joshi , venkataravis@micron.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, nvdimm@lists.linux.dev, linux-cxl@vger.kernel.org, linux-fsdevel@vger.kernel.org, John Groves Subject: [PATCH V3 19/21] famfs_fuse: Add DAX address_space_operations with noop_dirty_folio Date: Wed, 7 Jan 2026 09:33:28 -0600 Message-ID: <20260107153332.64727-20-john@groves.net> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260107153332.64727-1-john@groves.net> References: <20260107153244.64703-1-john@groves.net> <20260107153332.64727-1-john@groves.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: John Groves Famfs is memory-backed; there is no place to write back to, and no reason to mark pages dirty at all. Signed-off-by: John Groves --- fs/fuse/famfs.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/fs/fuse/famfs.c b/fs/fuse/famfs.c index 4eb87c5c628e..32c3d0c2ec48 100644 --- a/fs/fuse/famfs.c +++ b/fs/fuse/famfs.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include @@ -38,6 +39,15 @@ static const struct dax_holder_operations famfs_fuse_dax= _holder_ops =3D { .notify_failure =3D famfs_dax_notify_failure, }; =20 +/* + * DAX address_space_operations for famfs. + * famfs doesn't need dirty tracking - writes go directly to + * memory with no writeback required. + */ +static const struct address_space_operations famfs_dax_aops =3D { + .dirty_folio =3D noop_dirty_folio, +}; + /*************************************************************************= ****/ =20 /* @@ -657,6 +667,7 @@ famfs_file_init_dax( } i_size_write(inode, meta->file_size); inode->i_flags |=3D S_DAX; + inode->i_data.a_ops =3D &famfs_dax_aops; } unlock_out: inode_unlock(inode); --=20 2.49.0