--- zzzz-none-000/linux-4.1.38/fs/jffs2/readinode.c 2017-01-18 18:48:06.000000000 +0000 +++ bcm63-7582-715/linux-4.1.38/fs/jffs2/readinode.c 2020-11-25 10:06:48.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; }