[PATCH 3/3] fuse2fs: enable iomap

Darrick J. Wong
2025-09-16T01:06:50Z

Now that iomap functionality is complete, enable this for users.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
---
fuse4fs/fuse4fs.c | 4 ----
misc/fuse2fs.c | 4 ----
2 files changed, 8 deletions(-)

diff --git a/fuse4fs/fuse4fs.c b/fuse4fs/fuse4fs.c
index 5c563eff1c38c1..c4397fc365ced7 100644
--- a/fuse4fs/fuse4fs.c
+++ b/fuse4fs/fuse4fs.c
@@ -1652,10 +1652,6 @@ static inline int fuse_set_feature_flag(struct fuse_conn_info *conn,
static void fuse4fs_iomap_enable(struct fuse_conn_info *conn,
struct fuse4fs *ff)
{
- /* Don't let anyone touch iomap until the end of the patchset. */
- ff->iomap_state = IOMAP_DISABLED;
- return;
-
/* iomap only works with block devices */
if (ff->iomap_state != IOMAP_DISABLED && fuse4fs_on_bdev(ff) &&
fuse_set_feature_flag(conn, FUSE_CAP_IOMAP)) {
diff --git a/misc/fuse2fs.c b/misc/fuse2fs.c
index 7a10b6cab87f7c..5e4680ca023282 100644
--- a/misc/fuse2fs.c
+++ b/misc/fuse2fs.c
@@ -1478,10 +1478,6 @@ static inline int fuse_set_feature_flag(struct fuse_conn_info *conn,
static void fuse2fs_iomap_enable(struct fuse_conn_info *conn,
struct fuse2fs *ff)
{
- /* Don't let anyone touch iomap until the end of the patchset. */
- ff->iomap_state = IOMAP_DISABLED;
- return;
-
/* iomap only works with block devices */
if (ff->iomap_state != IOMAP_DISABLED && fuse2fs_on_bdev(ff) &&
fuse_set_feature_flag(conn, FUSE_CAP_IOMAP)) {