Lines Matching refs:have

207 	int have;
220 have = need;
222 have = mdsc->caps_avail_count;
223 mdsc->caps_avail_count -= have;
224 mdsc->caps_reserve_count += have;
230 for (i = have; i < need; ) {
265 have += more_have;
276 ctx, need, have + alloc);
282 BUG_ON(have + alloc != need);
297 __ceph_unreserve_caps(mdsc, have + alloc);
581 * know what happened to this directory while we didn't have the cap.
792 int have = ci->i_snap_caps;
804 have |= cap->issued;
815 have &= ~cap->implemented | cap->issued;
817 return have;
825 int have = ci->i_snap_caps;
835 have |= cap->issued;
837 return have;
869 int have = ci->i_snap_caps;
871 if ((have & mask) == mask) {
874 ceph_cap_string(have),
894 have |= cap->issued;
895 if ((have & mask) == mask) {
1069 * Return caps we have registered with the MDS(s) as 'wanted'.
1114 /* 'ci' being NULL means the remove have already occurred */
1186 /* 'ci' being NULL means the remove have already occurred */
1365 * that have now been implemented.
2000 /* Caps which have active references against them */
2004 * "issued" represents the current caps that the MDS wants us to have.
2005 * "implemented" is the set that we have been granted, and includes the
2006 * ones that have not yet been returned to the MDS (the "revoking" set,
2007 * usually because they have outstanding references).
2038 * keep RD only if we didn't have the file open RW,
2060 * have cached pages, but don't want them, then try to invalidate.
2066 inode->i_data.nrpages && /* have cached pages */
2093 * If we have an auth cap, we don't need to consider any
2752 int have, implemented;
2779 have = __ceph_caps_issued(ci, &implemented);
2781 if (have & need & CEPH_CAP_FILE_WR) {
2799 if ((have & need) == need) {
2801 * Look at (implemented & ~have & not) so that we keep waiting
2809 int not = want & ~(have & need);
2810 int revoking = implemented & ~have;
2812 dout("get_cap_refs %p have %s but not %s (revoking %s)\n",
2813 inode, ceph_cap_string(have), ceph_cap_string(not),
2836 if ((have & want) == want)
2874 dout("get_cap_refs %p have %s need %s\n", inode,
2875 ceph_cap_string(have), ceph_cap_string(need));
3364 * unhashed dentry. But directory inode should have
3445 * If CACHE is being revoked, and we have no dirty buffers,
3555 /* file layout may have changed */
4024 /* already have caps from the target */
4359 dout(" i don't have ino %llx\n", vino.ino);
4374 /* these will work even if we don't have a cap yet */
4477 * along for the mds (who clearly thinks we still have this
4775 * @unless: unless we have these caps
4793 * force an record for the directory caps if we have a dentry lease.
4795 * doesn't have to be perfect; the mds will revoke anything we don't