--- zzzz-none-000/linux-4.1.52/fs/jffs2/readinode.c 2018-05-28 02:26:45.000000000 +0000 +++ bcm63-7530ax-731/linux-4.1.52/fs/jffs2/readinode.c 2022-03-02 11:37:13.000000000 +0000 @@ -1318,6 +1318,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; }