From a83c7c70e0f92fa6dd8b54c3b058a27e80a3f77f Mon Sep 17 00:00:00 2001 From: wangdi Date: Thu, 10 Jun 2004 09:07:17 +0000 Subject: [PATCH] minor fix in mds_finish_open --- lustre/mds/mds_open.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/mds/mds_open.c b/lustre/mds/mds_open.c index 2f3e7d0..4dbc817 100644 --- a/lustre/mds/mds_open.c +++ b/lustre/mds/mds_open.c @@ -619,8 +619,8 @@ static int mds_finish_open(struct ptlrpc_request *req, struct dentry *dchild, /* atomically create objects if necessary */ down(&dchild->d_inode->i_sem); mode = dchild->d_inode->i_mode; - if ((S_ISREG(mode) && (body->valid & OBD_MD_FLEASIZE)) || - (S_ISDIR(mode) && (body->valid & OBD_MD_FLDIREA))) { + if ((S_ISREG(mode) && !(body->valid & OBD_MD_FLEASIZE)) || + (S_ISDIR(mode) && !(body->valid & OBD_MD_FLDIREA))) { rc = mds_pack_md(obd, req->rq_repmsg, 2, body, dchild->d_inode, 0); if (rc) { -- 1.8.3.1