if (!req)
RETURN(-ENOMEM);
- if (it->it_flags & O_JOIN_FILE) {
+ if (do_join) {
__u64 head_size = *(__u32*)cb_data;
__u32 tsize = *(__u32*)lmm;
/* for remote client, fetch remote perm for current user */
repsize[repbufcnt++] = client_is_remote(exp) ?
- sizeof(struct mdt_remote_perm) :
- LUSTRE_POSIX_ACL_MAX_SIZE;
+ sizeof(struct mdt_remote_perm) :
+ LUSTRE_POSIX_ACL_MAX_SIZE;
repsize[repbufcnt++] = sizeof(struct lustre_capa);
repsize[repbufcnt++] = sizeof(struct lustre_capa);
} else if (it->it_op & IT_UNLINK) {
OBD_MD_FLACL;
size[DLM_INTENT_REC_OFF] = sizeof(struct mdt_body);
size[DLM_INTENT_REC_OFF + 1] = op_data->mod_capa1 ?
- sizeof(struct lustre_capa) : 0;
+ sizeof(struct lustre_capa) : 0;
size[DLM_INTENT_REC_OFF + 2] = op_data->namelen + 1;
if (it->it_op & IT_GETATTR)
it->it_flags, op_data);
repsize[repbufcnt++] = client_is_remote(exp) ?
- sizeof(struct mdt_remote_perm) :
- LUSTRE_POSIX_ACL_MAX_SIZE;
+ sizeof(struct mdt_remote_perm) :
+ LUSTRE_POSIX_ACL_MAX_SIZE;
repsize[repbufcnt++] = sizeof(struct lustre_capa);
} else if (it->it_op == IT_READDIR) {
policy.l_inodebits.bits = MDS_INODELOCK_UPDATE;