X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=yaffs_guts.c;h=79568eeeae39eb20d171226afc015cedbda75e5d;hp=1602c4bde572e538482953ee10bff65d1624b5d9;hb=4b745e6080b0e0283e1e2f1de044760a8245e227;hpb=f579840dc5fa33617b3c99bf184024373941066a diff --git a/yaffs_guts.c b/yaffs_guts.c index 1602c4b..79568ee 100644 --- a/yaffs_guts.c +++ b/yaffs_guts.c @@ -3559,9 +3559,11 @@ int yaffs_do_file_wr(struct yaffs_obj *in, const u8 *buffer, loff_t offset, } if (n_copy != dev->data_bytes_per_chunk || + !dev->param.cache_bypass_aligned || dev->param.inband_tags) { /* An incomplete start or end chunk (or maybe both * start and end chunk), or we're using inband tags, + * or we're forcing writes through the cache, * so we want to use the cache buffers. */ if (dev->param.n_caches > 0) {