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()
3098 int newcaps = le32_to_cpu(grant->caps); in handle_cap_grant() local
3112 inode, cap, session->s_mds, seq, ceph_cap_string(newcaps)); in handle_cap_grant()
3123 ((cap->issued & ~newcaps) & CEPH_CAP_FILE_CACHE) && in handle_cap_grant()
3124 (newcaps & CEPH_CAP_FILE_LAZYIO) == 0 && in handle_cap_grant()
3151 newcaps |= cap->issued; in handle_cap_grant()
3158 __check_cap_issue(ci, cap, newcaps); in handle_cap_grant()
3162 if ((newcaps & CEPH_CAP_AUTH_SHARED) && in handle_cap_grant()
3173 if ((newcaps & CEPH_CAP_LINK_SHARED) && in handle_cap_grant()
3177 (newcaps & (CEPH_CAP_LINK_SHARED | CEPH_CAP_LINK_EXCL))) in handle_cap_grant()
3198 if (newcaps & CEPH_CAP_ANY_RD) { in handle_cap_grant()
3209 if ((newcaps & CEPH_CAP_FILE_SHARED) && extra_info->dirstat_valid) { in handle_cap_grant()
3214 if (newcaps & (CEPH_CAP_ANY_FILE_RD | CEPH_CAP_ANY_FILE_WR)) { in handle_cap_grant()
3237 if (ci->i_auth_cap == cap && (newcaps & CEPH_CAP_ANY_FILE_WR)) { in handle_cap_grant()
3264 (wanted & ~(cap->mds_wanted | newcaps))) { in handle_cap_grant()
3279 if (cap->issued & ~newcaps) { in handle_cap_grant()
3280 int revoking = cap->issued & ~newcaps; in handle_cap_grant()
3284 ceph_cap_string(newcaps), in handle_cap_grant()
3289 (newcaps & CEPH_CAP_FILE_LAZYIO) == 0 && in handle_cap_grant()
3296 cap->issued = newcaps; in handle_cap_grant()
3297 cap->implemented |= newcaps; in handle_cap_grant()
3298 } else if (cap->issued == newcaps) { in handle_cap_grant()
3300 ceph_cap_string(cap->issued), ceph_cap_string(newcaps)); in handle_cap_grant()
3303 ceph_cap_string(newcaps)); in handle_cap_grant()
3306 __ceph_caps_revoking_other(ci, cap, newcaps)) in handle_cap_grant()
3309 cap->issued = newcaps; in handle_cap_grant()
3310 cap->implemented |= newcaps; /* add bits only, to in handle_cap_grant()
3321 (newcaps & (CEPH_CAP_FILE_CACHE|CEPH_CAP_FILE_LAZYIO))) in handle_cap_grant()
3326 if (newcaps & ~extra_info->issued) in handle_cap_grant()