Lines Matching refs:newcaps
215 LIST_HEAD(newcaps); in ceph_reserve_caps()
235 list_add(&cap->caps_item, &newcaps); in ceph_reserve_caps()
292 list_splice(&newcaps, &mdsc->caps_list); in ceph_reserve_caps()
3510 int newcaps = le32_to_cpu(grant->caps); in handle_cap_grant() local
3535 ceph_cap_string(newcaps)); in handle_cap_grant()
3546 ((cap->issued & ~newcaps) & CEPH_CAP_FILE_CACHE) && in handle_cap_grant()
3547 (newcaps & CEPH_CAP_FILE_LAZYIO) == 0 && in handle_cap_grant()
3574 newcaps |= cap->issued; in handle_cap_grant()
3581 __check_cap_issue(ci, cap, newcaps); in handle_cap_grant()
3585 if ((newcaps & CEPH_CAP_AUTH_SHARED) && in handle_cap_grant()
3612 if ((newcaps & CEPH_CAP_LINK_SHARED) && in handle_cap_grant()
3636 if (newcaps & CEPH_CAP_ANY_RD) { in handle_cap_grant()
3647 if ((newcaps & CEPH_CAP_FILE_SHARED) && extra_info->dirstat_valid) { in handle_cap_grant()
3652 if (newcaps & (CEPH_CAP_ANY_FILE_RD | CEPH_CAP_ANY_FILE_WR)) { in handle_cap_grant()
3675 if (ci->i_auth_cap == cap && (newcaps & CEPH_CAP_ANY_FILE_WR)) { in handle_cap_grant()
3697 (wanted & ~(cap->mds_wanted | newcaps))) { in handle_cap_grant()
3712 if (cap->issued & ~newcaps) { in handle_cap_grant()
3713 int revoking = cap->issued & ~newcaps; in handle_cap_grant()
3716 ceph_cap_string(cap->issued), ceph_cap_string(newcaps), in handle_cap_grant()
3724 (newcaps & CEPH_CAP_FILE_LAZYIO) == 0) { in handle_cap_grant()
3732 if (~cap->issued & newcaps) in handle_cap_grant()
3734 cap->issued = newcaps; in handle_cap_grant()
3735 cap->implemented |= newcaps; in handle_cap_grant()
3736 } else if (cap->issued == newcaps) { in handle_cap_grant()
3739 ceph_cap_string(newcaps)); in handle_cap_grant()
3742 ceph_cap_string(newcaps)); in handle_cap_grant()
3745 __ceph_caps_revoking_other(ci, cap, newcaps)) in handle_cap_grant()
3748 cap->issued = newcaps; in handle_cap_grant()
3749 cap->implemented |= newcaps; /* add bits only, to in handle_cap_grant()
3770 (newcaps & (CEPH_CAP_FILE_CACHE|CEPH_CAP_FILE_LAZYIO))) in handle_cap_grant()
3776 if (newcaps & ~extra_info->issued) in handle_cap_grant()