Re: [PATCH v3 1/2] fuse: reflect cached blocksize if blocksize was changed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 15 Aug 2025 11:25:38 Joanne Koong wrote:
>diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h
>index ec248d13c8bf..1647eb7ca6fa 100644
>--- a/fs/fuse/fuse_i.h
>+++ b/fs/fuse/fuse_i.h
>@@ -210,6 +210,12 @@ struct fuse_inode {
>        /** Reference to backing file in passthrough mode */
>        struct fuse_backing *fb;
> #endif
>+
>+       /*
>+        * The underlying inode->i_blkbits value will not be modified,
>+        * so preserve the blocksize specified by the server.
>+        */
>+       u8 cached_i_blkbits;
> };

Does the `cached_i_blkbits` member also need to be initialized in the
`fuse_alloc_inode` function like `orig_ino`? 

And I am also confused, why does `orig_ino` need to be initialized in
`fuse_alloc_inode`, but the `orig_i_mode` member does not need it?

Thanks
Chunsheng Luo




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux