Lines Matching defs:want

739 	 * If we are issued caps we don't want, or the mds' wanted
889 * callers to check for caps they want.)
1018 int want = 0;
1023 want |= CEPH_CAP_ANY_SHARED;
1027 want |= CEPH_CAP_ANY_SHARED | CEPH_CAP_FILE_EXCL;
1029 want |= CEPH_CAP_ANY_DIR_OPS;
1032 if (want || ci->i_nr_by_mode[PIN_SHIFT] > 0)
1033 want |= CEPH_CAP_PIN;
1035 return want;
1071 /* we want EXCL if holding caps of dir ops */
1075 /* we want EXCL if dirty data */
1391 int op, int flags, int used, int want, int retain,
1413 cap->issued &= retain; /* drop bits we don't want */
1421 cap->mds_wanted = want;
1433 if (want & CEPH_CAP_ANY_FILE_WR)
1456 arg->wanted = want;
2017 int issued, implemented, want, retain, revoking, flushing = 0;
2053 want = file_wanted;
2055 /* The ones we currently want to retain (may be adjusted below) */
2064 * If a directory is complete, we want to keep
2070 want = CEPH_CAP_ANY_SHARED;
2072 want |= CEPH_CAP_ANY_SHARED | CEPH_CAP_FILE_EXCL;
2074 retain |= want;
2102 * have cached pages, but don't want them, then try to invalidate.
2205 /* want more caps from mds? */
2206 if (want & ~cap->mds_wanted) {
2207 if (want & ~(cap->mds_wanted | cap->issued))
2252 want, retain, flushing, flush_tid, oldest_flush_tid);
2795 * Try to grab cap references. Specify those refs we @want, and the
2813 static int try_get_cap_refs(struct inode *inode, int need, int want,
2823 doutc(cl, "%p %llx.%llx need %s want %s\n", inode,
2825 ceph_cap_string(want));
2880 int not = want & ~(have & need);
2907 if ((have & want) == want)
2908 *got = need | (want & ~exclude);
2971 * max_size. If necessary, tell the MDS we want to write to
3008 int ceph_try_get_caps(struct inode *inode, int need, int want,
3014 BUG_ON(want & ~(CEPH_CAP_FILE_CACHE | CEPH_CAP_FILE_LAZYIO |
3023 flags = get_used_fmode(need | want);
3027 ret = try_get_cap_refs(inode, need, want, 0, flags, got);
3040 int want, loff_t endoff, int *got)
3054 flags = get_used_fmode(need | want);
3061 ret = try_get_cap_refs(inode, need, want, endoff,
3075 cw.want = want;
3087 while (!(ret = try_get_cap_refs(inode, need, want,
3172 int ceph_get_caps(struct file *filp, int need, int want, loff_t endoff,
3178 return __ceph_get_caps(inode, fi, need, want, endoff, got);
3689 * want are already issued. If mds revokes caps, cap message
3690 * that releases caps also tells mds what we want. But if
3692 * haven't told mds what we want.
4795 * than PIN) we don't specifically want (due to the file still being