Merge tag 'erofs-for-6.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/xiang...
[linux-2.6-microblaze.git] / fs / erofs / inode.c
index 36e638e..0eb0e6f 100644 (file)
@@ -259,14 +259,12 @@ static int erofs_fill_inode(struct inode *inode)
 
        if (erofs_inode_is_data_compressed(vi->datalayout)) {
 #ifdef CONFIG_EROFS_FS_ZIP
-               if (!erofs_is_fscache_mode(inode->i_sb)) {
-                       DO_ONCE_LITE_IF(inode->i_sb->s_blocksize != PAGE_SIZE,
-                                 erofs_info, inode->i_sb,
-                                 "EXPERIMENTAL EROFS subpage compressed block support in use. Use at your own risk!");
-                       inode->i_mapping->a_ops = &z_erofs_aops;
-                       err = 0;
-                       goto out_unlock;
-               }
+               DO_ONCE_LITE_IF(inode->i_blkbits != PAGE_SHIFT,
+                         erofs_info, inode->i_sb,
+                         "EXPERIMENTAL EROFS subpage compressed block support in use. Use at your own risk!");
+               inode->i_mapping->a_ops = &z_erofs_aops;
+               err = 0;
+               goto out_unlock;
 #endif
                err = -EOPNOTSUPP;
                goto out_unlock;