Skip to content

Redfs ubuntu fix ff->iomode warning#103

Merged
bsbernd merged 1 commit into
DDNStorage:redfs-ubuntu-noble-6.8.0-58.60from
hbirth:redfs-ubuntu-fix-ff_iomode-warning
Mar 3, 2026
Merged

Redfs ubuntu fix ff->iomode warning#103
bsbernd merged 1 commit into
DDNStorage:redfs-ubuntu-noble-6.8.0-58.60from
hbirth:redfs-ubuntu-fix-ff_iomode-warning

Conversation

@hbirth
Copy link
Copy Markdown
Collaborator

@hbirth hbirth commented Feb 25, 2026

This is a backport of upstream commit:
4864a6d

But due to the fact that Linux 6.8 does not have the passthrough feature that commit cannot be cherry picked without a de facto rewrite. (E.g. the struct fuse_backed is not even defined)

This is a backport of upstream commit:
4864a6d

But due to the fact that Linux 6.8 does not have the passthrough
feature that commit cannot be cherry picked without a de facto
rewrite. (E.g. the struct fuse_backed is not even defined)

Signed-off-by: Horst Birthelmer <[email protected]>
Comment thread fs/fuse/file.c
fuse_inode_uncached_io_end(fi);
inode_unlock_shared(inode);
}
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I might miss it, but what about fuse_file_mmap?

@@ -2574,8 +2574,10 @@ static int fuse_file_mmap(struct file *file, struct vm_area_struct *vma)
                 * First mmap of direct_io file enters caching inode io mode.
                 * Also waits for parallel dio writers to go into serial mode
                 * (exclusive instead of shared lock).
+                * After first mmap, the inode stays in caching io mode until
+                * the direct_io file release.
                 */
-               rc = fuse_file_cached_io_start(inode, ff);
+               rc = fuse_file_cached_io_open(inode, ff);
                if (rc)
                        return rc;
        }
``

Copy link
Copy Markdown
Collaborator Author

@hbirth hbirth Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-int fuse_file_cached_io_start(struct inode *inode, struct fuse_file *ff)
+int fuse_file_cached_io_open(struct inode *inode, struct fuse_file *ff)

This was just a rename, which I didn't do. There was no functional change in the function except a comment

@bsbernd bsbernd merged commit e5a047f into DDNStorage:redfs-ubuntu-noble-6.8.0-58.60 Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants