--- zzzz-none-000/linux-4.19.183/fs/jffs2/readinode.c 2021-03-24 10:07:39.000000000 +0000 +++ bcm63-7530ax-756/linux-4.19.183/fs/jffs2/readinode.c 2023-06-28 08:54:20.000000000 +0000 @@ -1321,6 +1321,12 @@ if (f->inocache->state == INO_STATE_READING) jffs2_set_inocache_state(c, f->inocache, INO_STATE_PRESENT); +#if defined(CONFIG_BCM_KF_JFFS) + /* Set a "not compressed" flag so the inode does not get compressed when moved. */ + if( latest_node->compr == JFFS2_COMPR_NONE ) + f->inocache->flags |= INO_FLAGS_COMPR_NONE; +#endif + return 0; }