Lines Matching defs:have

205 	int have;
218 have = need;
220 have = mdsc->caps_avail_count;
221 mdsc->caps_avail_count -= have;
222 mdsc->caps_reserve_count += have;
228 for (i = have; i < need; ) {
263 have += more_have;
274 ctx, need, have + alloc);
280 BUG_ON(have + alloc != need);
295 __ceph_unreserve_caps(mdsc, have + alloc);
579 * know what happened to this directory while we didn't have the cap.
810 int have = ci->i_snap_caps;
822 have |= cap->issued;
833 have &= ~cap->implemented | cap->issued;
835 return have;
843 int have = ci->i_snap_caps;
853 have |= cap->issued;
855 return have;
887 int have = ci->i_snap_caps;
889 if ((have & mask) == mask) {
892 ceph_cap_string(have),
912 have |= cap->issued;
913 if ((have & mask) == mask) {
1087 * Return caps we have registered with the MDS(s) as 'wanted'.
1146 /* 'ci' being NULL means the remove have already occurred */
1351 * that have now been implemented.
1952 /* Caps which have active references against them */
1956 * "issued" represents the current caps that the MDS wants us to have.
1957 * "implemented" is the set that we have been granted, and includes the
1958 * ones that have not yet been returned to the MDS (the "revoking" set,
1959 * usually because they have outstanding references).
1990 * keep RD only if we didn't have the file open RW,
2011 * have cached pages, but don't want them, then try to invalidate.
2017 inode->i_data.nrpages && /* have cached pages */
2045 * If we have an auth cap, we don't need to consider any
2734 int have, implemented;
2761 have = __ceph_caps_issued(ci, &implemented);
2763 if (have & need & CEPH_CAP_FILE_WR) {
2781 if ((have & need) == need) {
2783 * Look at (implemented & ~have & not) so that we keep waiting
2788 int not = want & ~(have & need);
2789 int revoking = implemented & ~have;
2790 dout("get_cap_refs %p have %s but not %s (revoking %s)\n",
2791 inode, ceph_cap_string(have), ceph_cap_string(not),
2814 if ((have & want) == want)
2856 dout("get_cap_refs %p have %s need %s\n", inode,
2857 ceph_cap_string(have), ceph_cap_string(need));
3312 * unhashed dentry. But directory inode should have
3382 * If CACHE is being revoked, and we have no dirty buffers,
3479 /* file layout may have changed */
3938 /* already have caps from the target */
4220 dout(" i don't have ino %llx\n", vino.ino);
4237 /* these will work even if we don't have a cap yet */
4319 * along for the mds (who clearly thinks we still have this
4611 * force an record for the directory caps if we have a dentry lease.
4613 * doesn't have to be perfect; the mds will revoke anything we don't