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()
3257 int newcaps = le32_to_cpu(grant->caps); in handle_cap_grant() local
3271 inode, cap, session->s_mds, seq, ceph_cap_string(newcaps)); in handle_cap_grant()
3282 ((cap->issued & ~newcaps) & CEPH_CAP_FILE_CACHE) && in handle_cap_grant()
3283 (newcaps & CEPH_CAP_FILE_LAZYIO) == 0 && in handle_cap_grant()
3310 newcaps |= cap->issued; in handle_cap_grant()
3317 __check_cap_issue(ci, cap, newcaps); in handle_cap_grant()
3321 if ((newcaps & CEPH_CAP_AUTH_SHARED) && in handle_cap_grant()
3332 if ((newcaps & CEPH_CAP_LINK_SHARED) && in handle_cap_grant()
3336 (newcaps & (CEPH_CAP_LINK_SHARED | CEPH_CAP_LINK_EXCL))) in handle_cap_grant()
3357 if (newcaps & CEPH_CAP_ANY_RD) { in handle_cap_grant()
3368 if ((newcaps & CEPH_CAP_FILE_SHARED) && extra_info->dirstat_valid) { in handle_cap_grant()
3373 if (newcaps & (CEPH_CAP_ANY_FILE_RD | CEPH_CAP_ANY_FILE_WR)) { in handle_cap_grant()
3396 if (ci->i_auth_cap == cap && (newcaps & CEPH_CAP_ANY_FILE_WR)) { in handle_cap_grant()
3419 (wanted & ~(cap->mds_wanted | newcaps))) { in handle_cap_grant()
3434 if (cap->issued & ~newcaps) { in handle_cap_grant()
3435 int revoking = cap->issued & ~newcaps; in handle_cap_grant()
3439 ceph_cap_string(newcaps), in handle_cap_grant()
3446 (newcaps & CEPH_CAP_FILE_LAZYIO) == 0) in handle_cap_grant()
3452 cap->issued = newcaps; in handle_cap_grant()
3453 cap->implemented |= newcaps; in handle_cap_grant()
3454 } else if (cap->issued == newcaps) { in handle_cap_grant()
3456 ceph_cap_string(cap->issued), ceph_cap_string(newcaps)); in handle_cap_grant()
3459 ceph_cap_string(newcaps)); in handle_cap_grant()
3462 __ceph_caps_revoking_other(ci, cap, newcaps)) in handle_cap_grant()
3465 cap->issued = newcaps; in handle_cap_grant()
3466 cap->implemented |= newcaps; /* add bits only, to in handle_cap_grant()
3477 (newcaps & (CEPH_CAP_FILE_CACHE|CEPH_CAP_FILE_LAZYIO))) in handle_cap_grant()
3483 if (newcaps & ~extra_info->issued) in handle_cap_grant()