X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fosc%2Fosc_io.c;h=0501ba575a956b889aaca65bd0cd941ec6eec395;hp=1ab41d875f50913e79e94adafb943436e8ffd84d;hb=385c955d968c03acfa3d664764087def07a3e92c;hpb=e5b704eb23b859ad53bfd64538b346b4d40b23cb diff --git a/lustre/osc/osc_io.c b/lustre/osc/osc_io.c index 1ab41d8..0501ba5 100644 --- a/lustre/osc/osc_io.c +++ b/lustre/osc/osc_io.c @@ -211,7 +211,7 @@ static int osc_io_submit(const struct lu_env *env, result = osc_queue_sync_pages(env, osc, &list, cmd, brw_flags); /* Update c/mtime for sync write. LU-7310 */ - if (qout->pl_nr > 0 && result == 0) { + if (crt == CRT_WRITE && qout->pl_nr > 0 && result == 0) { struct cl_object *obj = ios->cis_obj; struct cl_attr *attr = &osc_env_info(env)->oti_attr;