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()
3293 int newcaps = le32_to_cpu(grant->caps); in handle_cap_grant() local
3307 inode, cap, session->s_mds, seq, ceph_cap_string(newcaps)); in handle_cap_grant()
3318 ((cap->issued & ~newcaps) & CEPH_CAP_FILE_CACHE) && in handle_cap_grant()
3319 (newcaps & CEPH_CAP_FILE_LAZYIO) == 0 && in handle_cap_grant()
3346 newcaps |= cap->issued; in handle_cap_grant()
3353 __check_cap_issue(ci, cap, newcaps); in handle_cap_grant()
3357 if ((newcaps & CEPH_CAP_AUTH_SHARED) && in handle_cap_grant()
3374 if ((newcaps & CEPH_CAP_LINK_SHARED) && in handle_cap_grant()
3378 (newcaps & (CEPH_CAP_LINK_SHARED | CEPH_CAP_LINK_EXCL))) in handle_cap_grant()
3399 if (newcaps & CEPH_CAP_ANY_RD) { in handle_cap_grant()
3410 if ((newcaps & CEPH_CAP_FILE_SHARED) && extra_info->dirstat_valid) { in handle_cap_grant()
3415 if (newcaps & (CEPH_CAP_ANY_FILE_RD | CEPH_CAP_ANY_FILE_WR)) { in handle_cap_grant()
3438 if (ci->i_auth_cap == cap && (newcaps & CEPH_CAP_ANY_FILE_WR)) { in handle_cap_grant()
3461 (wanted & ~(cap->mds_wanted | newcaps))) { in handle_cap_grant()
3476 if (cap->issued & ~newcaps) { in handle_cap_grant()
3477 int revoking = cap->issued & ~newcaps; in handle_cap_grant()
3481 ceph_cap_string(newcaps), in handle_cap_grant()
3488 (newcaps & CEPH_CAP_FILE_LAZYIO) == 0) in handle_cap_grant()
3494 cap->issued = newcaps; in handle_cap_grant()
3495 cap->implemented |= newcaps; in handle_cap_grant()
3496 } else if (cap->issued == newcaps) { in handle_cap_grant()
3498 ceph_cap_string(cap->issued), ceph_cap_string(newcaps)); in handle_cap_grant()
3501 ceph_cap_string(newcaps)); in handle_cap_grant()
3504 __ceph_caps_revoking_other(ci, cap, newcaps)) in handle_cap_grant()
3507 cap->issued = newcaps; in handle_cap_grant()
3508 cap->implemented |= newcaps; /* add bits only, to in handle_cap_grant()
3519 (newcaps & (CEPH_CAP_FILE_CACHE|CEPH_CAP_FILE_LAZYIO))) in handle_cap_grant()
3525 if (newcaps & ~extra_info->issued) in handle_cap_grant()