Lines Matching defs:have
209 int have;
222 have = need;
224 have = mdsc->caps_avail_count;
225 mdsc->caps_avail_count -= have;
226 mdsc->caps_reserve_count += have;
232 for (i = have; i < need; ) {
267 have += more_have;
278 have + alloc);
284 BUG_ON(have + alloc != need);
299 __ceph_unreserve_caps(mdsc, have + alloc);
599 * know what happened to this directory while we didn't have the cap.
816 int have = ci->i_snap_caps;
828 have |= cap->issued;
839 have &= ~cap->implemented | cap->issued;
841 return have;
849 int have = ci->i_snap_caps;
859 have |= cap->issued;
861 return have;
897 int have = ci->i_snap_caps;
899 if ((have & mask) == mask) {
901 inode, ceph_vinop(inode), ceph_cap_string(have),
921 have |= cap->issued;
922 if ((have & mask) == mask) {
1083 * Return caps we have registered with the MDS(s) as 'wanted'.
1130 /* 'ci' being NULL means the remove have already occurred */
1203 /* 'ci' being NULL means the remove have already occurred */
1388 * that have now been implemented.
2041 /* Caps which have active references against them */
2045 * "issued" represents the current caps that the MDS wants us to have.
2046 * "implemented" is the set that we have been granted, and includes the
2047 * ones that have not yet been returned to the MDS (the "revoking" set,
2048 * usually because they have outstanding references).
2079 * keep RD only if we didn't have the file open RW,
2102 * have cached pages, but don't want them, then try to invalidate.
2108 inode->i_data.nrpages && /* have cached pages */
2135 * If we have an auth cap, we don't need to consider any
2820 int have, implemented;
2849 have = __ceph_caps_issued(ci, &implemented);
2851 if (have & need & CEPH_CAP_FILE_WR) {
2870 if ((have & need) == need) {
2872 * Look at (implemented & ~have & not) so that we keep waiting
2880 int not = want & ~(have & need);
2881 int revoking = implemented & ~have;
2883 doutc(cl, "%p %llx.%llx have %s but not %s (revoking %s)\n",
2884 inode, ceph_vinop(inode), ceph_cap_string(have),
2907 if ((have & want) == want)
2947 doutc(cl, "%p %llx.%llx have %s need %s\n", inode,
2948 ceph_vinop(inode), ceph_cap_string(have),
3442 * unhashed dentry. But directory inode should have
3527 * If CACHE is being revoked, and we have no dirty buffers,
3639 /* file layout may have changed */
4120 /* already have caps from the target */
4458 doutc(cl, " i don't have ino %llx\n", vino.ino);
4473 /* these will work even if we don't have a cap yet */
4576 * along for the mds (who clearly thinks we still have this
4926 * @unless: unless we have these caps
4945 * force an record for the directory caps if we have a dentry lease.
4947 * doesn't have to be perfect; the mds will revoke anything we don't