[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <176169813894.1427432.14190543050440526022.stgit@frogsfrogsfrogs>
Date: Tue, 28 Oct 2025 18:04:31 -0700
From: "Darrick J. Wong" <djwong@...nel.org>
To: djwong@...nel.org, bschubert@....com
Cc: linux-ext4@...r.kernel.org, linux-fsdevel@...r.kernel.org,
bernd@...ernd.com, miklos@...redi.hu, joannelkoong@...il.com, neal@...pa.dev
Subject: [PATCH 20/22] libfuse: add swapfile support for iomap files
From: Darrick J. Wong <djwong@...nel.org>
Add flags for swapfile activation and deactivation.
Signed-off-by: "Darrick J. Wong" <djwong@...nel.org>
---
include/fuse_common.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/include/fuse_common.h b/include/fuse_common.h
index eb08320bc8863f..83ab3f54f54a2e 100644
--- a/include/fuse_common.h
+++ b/include/fuse_common.h
@@ -1190,6 +1190,9 @@ int fuse_convert_to_conn_want_ext(struct fuse_conn_info *conn);
#define FUSE_IOMAP_OP_ATOMIC (1U << 9)
#define FUSE_IOMAP_OP_DONTCACHE (1U << 10)
+/* swapfile config operation */
+#define FUSE_IOMAP_OP_SWAPFILE (1U << 30)
+
/* pagecache writeback operation */
#define FUSE_IOMAP_OP_WRITEBACK (1U << 31)
@@ -1229,6 +1232,8 @@ static inline bool fuse_iomap_need_write_allocate(unsigned int opflags,
#define FUSE_IOMAP_IOEND_APPEND (1U << 4)
/* is pagecache writeback */
#define FUSE_IOMAP_IOEND_WRITEBACK (1U << 5)
+/* swapfile deactivation */
+#define FUSE_IOMAP_IOEND_SWAPOFF (1U << 6)
/* enable fsdax */
#define FUSE_IFLAG_DAX (1U << 0)
Powered by blists - more mailing lists