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()
2763 int newcaps = le32_to_cpu(grant->caps); in handle_cap_grant() local
2778 inode, cap, mds, seq, ceph_cap_string(newcaps)); in handle_cap_grant()
2795 newcaps |= cap->issued; in handle_cap_grant()
2804 ((cap->issued & ~newcaps) & CEPH_CAP_FILE_CACHE) && in handle_cap_grant()
2805 (newcaps & CEPH_CAP_FILE_LAZYIO) == 0 && in handle_cap_grant()
2823 __check_cap_issue(ci, cap, newcaps); in handle_cap_grant()
2825 if ((newcaps & CEPH_CAP_AUTH_SHARED) && in handle_cap_grant()
2835 if ((newcaps & CEPH_CAP_AUTH_SHARED) && in handle_cap_grant()
2839 (newcaps & (CEPH_CAP_LINK_SHARED | CEPH_CAP_LINK_EXCL))) in handle_cap_grant()
2863 if (newcaps & CEPH_CAP_ANY_RD) { in handle_cap_grant()
2873 if (newcaps & (CEPH_CAP_ANY_FILE_RD | CEPH_CAP_ANY_FILE_WR)) { in handle_cap_grant()
2912 if (cap->issued & ~newcaps) { in handle_cap_grant()
2913 int revoking = cap->issued & ~newcaps; in handle_cap_grant()
2917 ceph_cap_string(newcaps), in handle_cap_grant()
2922 (newcaps & CEPH_CAP_FILE_LAZYIO) == 0 && in handle_cap_grant()
2929 cap->issued = newcaps; in handle_cap_grant()
2930 cap->implemented |= newcaps; in handle_cap_grant()
2931 } else if (cap->issued == newcaps) { in handle_cap_grant()
2933 ceph_cap_string(cap->issued), ceph_cap_string(newcaps)); in handle_cap_grant()
2936 ceph_cap_string(newcaps)); in handle_cap_grant()
2939 __ceph_caps_revoking_other(ci, cap, newcaps)) in handle_cap_grant()
2942 cap->issued = newcaps; in handle_cap_grant()
2943 cap->implemented |= newcaps; /* add bits only, to in handle_cap_grant()
2953 (newcaps & (CEPH_CAP_FILE_CACHE|CEPH_CAP_FILE_LAZYIO))) in handle_cap_grant()
2962 if (newcaps & ~issued) in handle_cap_grant()