X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fmdt%2Fmdt_lib.c;h=051421bbd0303bbd4134808e95b1e28e9a7e3d58;hp=85fa8f5aa2d2e7da605a46eca4fc20813d7365d8;hb=f4547f0569774eb794fb143362e201f658415f4c;hpb=bc962bde3b109b99c924137ed281d9400637e295 diff --git a/lustre/mdt/mdt_lib.c b/lustre/mdt/mdt_lib.c index 85fa8f5..051421bb 100644 --- a/lustre/mdt/mdt_lib.c +++ b/lustre/mdt/mdt_lib.c @@ -573,10 +573,10 @@ int mdt_fix_reply(struct mdt_thread_info *info) acl_size = body->aclsize; /* this replay - not send info to client */ - if (info->mti_spec.no_create == 1) { - md_size = 0; - acl_size = 0; - } + if (info->mti_spec.no_create) { + md_size = 0; + acl_size = 0; + } CDEBUG(D_INFO, "Shrink to md_size = %d cookie/acl_size = %d" " MDSCAPA = %llx, OSSCAPA = %llx\n", @@ -786,8 +786,8 @@ static __u64 mdt_attr_valid_xlate(__u64 in, struct mdt_reint_record *rr, if (in & ATTR_KILL_SGID) out |= LA_KILL_SGID; - if (in & MDS_OPEN_OWNEROVERRIDE) - ma->ma_attr_flags |= MDS_OPEN_OWNEROVERRIDE; + if (in & MDS_OPEN_OWNEROVERRIDE) + ma->ma_attr_flags |= MDS_OWNEROVERRIDE; if (in & ATTR_FORCE) ma->ma_attr_flags |= MDS_PERM_BYPASS;