From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ot1-f53.google.com (mail-ot1-f53.google.com [209.85.210.53]) (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 F30C73793A6 for ; Wed, 14 Jan 2026 21:41:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768426929; cv=none; b=u5Q74iGrs2B7+i4J0pZyhsQ4E8e/y4+LOMwnkq4UVWH17ohvEkJpSKN4yHEKv8OwpnMLReKevsQlH/TApXvClB3ORVLa113/Gk2viN014WvIIB6uQ98NhCHoBnvtK6QX/XFBIhohe2sXWUEPbYpKDrRwpj+JAd+JobhYuBJ7rJ4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768426929; c=relaxed/simple; bh=XuywZGj+XDpfZvHURwVbpU2ahP9/m0Z4xu0nAUB//wo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dFcrVlGrPfOxXxAStvjrMK9C7KOK8WPMmO3ylXiWwwtCwJhnXXPXU60GpVPGyENoxcmPq6LL3nD5ggMMe9xjAZKSkDoZQ6eVpzq/qWpwJN77x5HrZcbCzlEh9mmL/PATBR6CrgkVTkEqbomdvOkUq5Xd/Ojw/igctZDJAaeuaFM= 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=LatlMkST; arc=none smtp.client-ip=209.85.210.53 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="LatlMkST" Received: by mail-ot1-f53.google.com with SMTP id 46e09a7af769-7cfd2423793so202223a34.2 for ; Wed, 14 Jan 2026 13:41:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768426892; x=1769031692; 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=ikg86hLweLFlugyhGYJjhkjBVnchP1h60r6PTv+Ts0E=; b=LatlMkSTsYu/l8/Ja0zhCxdgQWUdY82RbwgAi6ykhvIWH63St5yaK2WQx7RNvztPLG oUyGbTXDlMNiWUKAEh+WqCpiRj0zEYGQi+uBIiGgDJXPFDYOcKbxvJ4ioMkxBfmTnJB3 1lbAlpaKoxzad8+wjDMyqf7w2YPLhQj6Vn1WcF3m4nr2jW8779kzpGWAzqnQwHTvTuT2 qL1QW3qyBZiiFBjjtFkaE87JWBBHQSbtDZ4B1STythH8Axd1OGO7ST1j+pjRaefJz+ZA I3ArH83uTzCaIT0gu/ddzrUDEXk6J6iVluSOIR3O6jA81hEzpljJDurnOFWlYByC1S7o 0vnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768426892; x=1769031692; 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=ikg86hLweLFlugyhGYJjhkjBVnchP1h60r6PTv+Ts0E=; b=rv72AyP/pAFzzq3OeZQ3J+gbZZcMAggJGPPvGwXlI2rJ5Ywx0+gPVwzoUGMccAsRBL Ad1PJjdhUBpTt1cLvFyhHJ2yP59DpsImL9iw+GkCpMDTLPkNb/ZQY7jv1NTG9ExZw1ES 4PZhlPoeMtP2XrZzPJ2YppEf2aUCuBw9VvEvFG8AESr3FbGs/cc5H23pgrmMkBlUscyV vBphlhhccbFF7jdiI3AXuXI0ZxEva6i0ROn06nUS4FtobmRBEA05kkWKN9AI6t79W0Z6 XaTWz7TWccpcuiZCeMLi1wzXkpZA3nyYjgIcjGrE7nbMrKvFKNOrJmI72xaM051iZvjc 3nmg== X-Forwarded-Encrypted: i=1; AJvYcCUzlPmZfsgBHN1eQFnJF4Mk7Pf+QUPuV33IzaygneDljpKDr1lygQs5eynY18nZaLc5DjJoC8ZAbv6JyRk=@vger.kernel.org X-Gm-Message-State: AOJu0YyNwlMD7RmyfZDzyFGAv4ThCHzIZlSbEj1jDHeCJfX8D7iaODH6 KIzzgubgF/yHNicnGCXpveZkDVQ9744fbk4TqYIkEtBR+xImWaBtwn8E X-Gm-Gg: AY/fxX7gbQ+YFHA+F2TbiN31cNS1D7x3qDQqbBYsYQTL6WSj7FW1NN5bYH8cibjxSt+ H9RR5QTfc3pxuiJtIkf7DL8l//by9ASADo43fo2iz+90teQTqpm9AzIYosGIALyUdEjI85C5Een I/il28Szg+NpWwUN3sgFQRoQpkNyRAoHbIce63P4370Hp741oz3vNXUBnvQLzJIN4T6IIJw6zm+ qb8oDm+7brIVNui0dAZUGhPdnJWNYqNfEcmbkfVngZiH4+Gw2/SZcnYyRczkWp2Bn06LRCl9j1k ZEMpr2RdKOoW3wQpQkdg7SnrFvyqSY+6lMtEFf2m/JPz3BoWYwRXBrbuQi3hRIB4NUwcV2t/MNJ TTTsRvfXPyODyxaGhf2FvUHUc9pAciBCDIyomligYQ4fhBrjDh90Iqahrjn79NyCOyVw/do1qoc uQxxg8J/nIDuxjRQ7/3Mwd3KH2/Vuks1yX0zjauZu421gp X-Received: by 2002:a9d:3e49:0:b0:7c5:3c7d:7e67 with SMTP id 46e09a7af769-7cfc8b5155fmr2043023a34.29.1768426892219; Wed, 14 Jan 2026 13:41:32 -0800 (PST) Received: from localhost.localdomain ([2603:8080:1500:3d89:4c85:2962:e438:72c4]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7ce478ede38sm18802373a34.26.2026.01.14.13.41.29 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 14 Jan 2026 13:41:31 -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 , 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 Subject: [PATCH V4 17/19] famfs_fuse: Add DAX address_space_operations with noop_dirty_folio Date: Wed, 14 Jan 2026 15:32:04 -0600 Message-ID: <20260114213209.29453-18-john@groves.net> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260114213209.29453-1-john@groves.net> References: <20260114153133.29420.compound@groves.net> <20260114213209.29453-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: 8bit 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 ee3526175b6b..f98e358ea489 100644 --- a/fs/fuse/famfs.c +++ b/fs/fuse/famfs.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -39,6 +40,15 @@ static const struct dax_holder_operations famfs_fuse_dax_holder_ops = { .notify_failure = famfs_dax_notify_failure, }; +/* + * 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 = { + .dirty_folio = noop_dirty_folio, +}; + /*****************************************************************************/ /* @@ -625,6 +635,7 @@ famfs_file_init_dax( } i_size_write(inode, meta->file_size); inode->i_flags |= S_DAX; + inode->i_data.a_ops = &famfs_dax_aops; } unlock_out: inode_unlock(inode); -- 2.52.0