Lines Matching defs:have

208 	int have;
221 have = need;
223 have = mdsc->caps_avail_count;
224 mdsc->caps_avail_count -= have;
225 mdsc->caps_reserve_count += have;
231 for (i = have; i < need; ) {
266 have += more_have;
277 have + alloc);
283 BUG_ON(have + alloc != need);
298 __ceph_unreserve_caps(mdsc, have + alloc);
598 * know what happened to this directory while we didn't have the cap.
815 int have = ci->i_snap_caps;
827 have |= cap->issued;
838 have &= ~cap->implemented | cap->issued;
840 return have;
848 int have = ci->i_snap_caps;
858 have |= cap->issued;
860 return have;
896 int have = ci->i_snap_caps;
898 if ((have & mask) == mask) {
900 inode, ceph_vinop(inode), ceph_cap_string(have),
920 have |= cap->issued;
921 if ((have & mask) == mask) {
1096 * Return caps we have registered with the MDS(s) as 'wanted'.
1143 /* 'ci' being NULL means the remove have already occurred */
1216 /* 'ci' being NULL means the remove have already occurred */
1401 * that have now been implemented.
2052 /* Caps which have active references against them */
2056 * "issued" represents the current caps that the MDS wants us to have.
2057 * "implemented" is the set that we have been granted, and includes the
2058 * ones that have not yet been returned to the MDS (the "revoking" set,
2059 * usually because they have outstanding references).
2090 * keep RD only if we didn't have the file open RW,
2112 * have cached pages, but don't want them, then try to invalidate.
2118 inode->i_data.nrpages && /* have cached pages */
2145 * If we have an auth cap, we don't need to consider any
2825 int have, implemented;
2854 have = __ceph_caps_issued(ci, &implemented);
2856 if (have & need & CEPH_CAP_FILE_WR) {
2875 if ((have & need) == need) {
2877 * Look at (implemented & ~have & not) so that we keep waiting
2885 int not = want & ~(have & need);
2886 int revoking = implemented & ~have;
2888 doutc(cl, "%p %llx.%llx have %s but not %s (revoking %s)\n",
2889 inode, ceph_vinop(inode), ceph_cap_string(have),
2912 if ((have & want) == want)
2952 doutc(cl, "%p %llx.%llx have %s need %s\n", inode,
2953 ceph_vinop(inode), ceph_cap_string(have),
3441 * unhashed dentry. But directory inode should have
3524 * If CACHE is being revoked, and we have no dirty buffers,
3636 /* file layout may have changed */
4115 /* already have caps from the target */
4453 doutc(cl, " i don't have ino %llx\n", vino.ino);
4468 /* these will work even if we don't have a cap yet */
4571 * along for the mds (who clearly thinks we still have this
4899 * @unless: unless we have these caps
4918 * force an record for the directory caps if we have a dentry lease.
4920 * doesn't have to be perfect; the mds will revoke anything we don't