Lines Matching refs:newcaps
158 LIST_HEAD(newcaps); in ceph_reserve_caps()
179 list_add(&cap->caps_item, &newcaps); in ceph_reserve_caps()
190 list_splice(&newcaps, &mdsc->caps_list); in ceph_reserve_caps()
2489 int newcaps = le32_to_cpu(grant->caps); in handle_cap_grant() local
2504 inode, cap, mds, seq, ceph_cap_string(newcaps)); in handle_cap_grant()
2521 newcaps |= cap->issued; in handle_cap_grant()
2529 if (((cap->issued & ~newcaps) & CEPH_CAP_FILE_CACHE) && in handle_cap_grant()
2530 (newcaps & CEPH_CAP_FILE_LAZYIO) == 0 && in handle_cap_grant()
2548 __check_cap_issue(ci, cap, newcaps); in handle_cap_grant()
2550 if ((newcaps & CEPH_CAP_AUTH_SHARED) && in handle_cap_grant()
2560 if ((newcaps & CEPH_CAP_AUTH_SHARED) && in handle_cap_grant()
2564 (newcaps & (CEPH_CAP_LINK_SHARED | CEPH_CAP_LINK_EXCL))) in handle_cap_grant()
2588 if (newcaps & CEPH_CAP_ANY_RD) { in handle_cap_grant()
2598 if (newcaps & (CEPH_CAP_ANY_FILE_RD | CEPH_CAP_ANY_FILE_WR)) { in handle_cap_grant()
2637 if (cap->issued & ~newcaps) { in handle_cap_grant()
2638 int revoking = cap->issued & ~newcaps; in handle_cap_grant()
2642 ceph_cap_string(newcaps), in handle_cap_grant()
2647 (newcaps & CEPH_CAP_FILE_LAZYIO) == 0 && in handle_cap_grant()
2654 cap->issued = newcaps; in handle_cap_grant()
2655 cap->implemented |= newcaps; in handle_cap_grant()
2656 } else if (cap->issued == newcaps) { in handle_cap_grant()
2658 ceph_cap_string(cap->issued), ceph_cap_string(newcaps)); in handle_cap_grant()
2661 ceph_cap_string(newcaps)); in handle_cap_grant()
2664 __ceph_caps_revoking_other(ci, cap, newcaps)) in handle_cap_grant()
2667 cap->issued = newcaps; in handle_cap_grant()
2668 cap->implemented |= newcaps; /* add bits only, to in handle_cap_grant()
2678 (newcaps & (CEPH_CAP_FILE_CACHE|CEPH_CAP_FILE_LAZYIO))) in handle_cap_grant()
2687 if (newcaps & ~issued) in handle_cap_grant()