Lines Matching refs:newcaps
211 LIST_HEAD(newcaps); in ceph_reserve_caps()
231 list_add(&cap->caps_item, &newcaps); in ceph_reserve_caps()
288 list_splice(&newcaps, &mdsc->caps_list); in ceph_reserve_caps()
3355 int newcaps = le32_to_cpu(grant->caps); in handle_cap_grant() local
3369 inode, cap, session->s_mds, seq, ceph_cap_string(newcaps)); in handle_cap_grant()
3380 ((cap->issued & ~newcaps) & CEPH_CAP_FILE_CACHE) && in handle_cap_grant()
3381 (newcaps & CEPH_CAP_FILE_LAZYIO) == 0 && in handle_cap_grant()
3408 newcaps |= cap->issued; in handle_cap_grant()
3415 __check_cap_issue(ci, cap, newcaps); in handle_cap_grant()
3419 if ((newcaps & CEPH_CAP_AUTH_SHARED) && in handle_cap_grant()
3430 if ((newcaps & CEPH_CAP_LINK_SHARED) && in handle_cap_grant()
3434 (newcaps & (CEPH_CAP_LINK_SHARED | CEPH_CAP_LINK_EXCL))) in handle_cap_grant()
3455 if (newcaps & CEPH_CAP_ANY_RD) { in handle_cap_grant()
3466 if ((newcaps & CEPH_CAP_FILE_SHARED) && extra_info->dirstat_valid) { in handle_cap_grant()
3471 if (newcaps & (CEPH_CAP_ANY_FILE_RD | CEPH_CAP_ANY_FILE_WR)) { in handle_cap_grant()
3494 if (ci->i_auth_cap == cap && (newcaps & CEPH_CAP_ANY_FILE_WR)) { in handle_cap_grant()
3517 (wanted & ~(cap->mds_wanted | newcaps))) { in handle_cap_grant()
3532 if (cap->issued & ~newcaps) { in handle_cap_grant()
3533 int revoking = cap->issued & ~newcaps; in handle_cap_grant()
3537 ceph_cap_string(newcaps), in handle_cap_grant()
3544 (newcaps & CEPH_CAP_FILE_LAZYIO) == 0) in handle_cap_grant()
3550 cap->issued = newcaps; in handle_cap_grant()
3551 cap->implemented |= newcaps; in handle_cap_grant()
3552 } else if (cap->issued == newcaps) { in handle_cap_grant()
3554 ceph_cap_string(cap->issued), ceph_cap_string(newcaps)); in handle_cap_grant()
3557 ceph_cap_string(newcaps)); in handle_cap_grant()
3560 __ceph_caps_revoking_other(ci, cap, newcaps)) in handle_cap_grant()
3563 cap->issued = newcaps; in handle_cap_grant()
3564 cap->implemented |= newcaps; /* add bits only, to in handle_cap_grant()
3575 (newcaps & (CEPH_CAP_FILE_CACHE|CEPH_CAP_FILE_LAZYIO))) in handle_cap_grant()
3581 if (newcaps & ~extra_info->issued) in handle_cap_grant()