X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fmds%2Fmds_open.c;h=51368837e5b3a056869ef5cc180e8c1a30bb19b1;hp=73da5aa8081b8c853db8cddc44ea94da201f0894;hb=f89a61cada93accbd02beee89f0610756ca595e9;hpb=eef822668e9c4794fc5f06747e03985518fa1d19 diff --git a/lustre/mds/mds_open.c b/lustre/mds/mds_open.c index 73da5aa..5136883 100644 --- a/lustre/mds/mds_open.c +++ b/lustre/mds/mds_open.c @@ -320,8 +320,7 @@ static int mds_create_objects(struct ptlrpc_request *req, int offset, if (!S_ISREG(inode->i_mode)) RETURN(0); - if (rec->ur_flags & MDS_OPEN_DELAY_CREATE || - !(rec->ur_flags & FMODE_WRITE)) + if (!md_should_create(rec->ur_flags)) RETURN(0); body = lustre_msg_buf(req->rq_repmsg, DLM_REPLY_REC_OFF, sizeof(*body));