• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/ceph/

Lines Matching defs:need

150 		      struct ceph_cap_reservation *ctx, int need)
159 dout("reserve caps ctx=%p need=%d\n", ctx, need);
163 if (mdsc->caps_avail_count >= need)
164 have = need;
174 for (i = have; i < need; i++) {
183 BUG_ON(have + alloc != need);
195 ctx->count = need;
203 pr_warning("reserve caps ctx=%p ENOMEM need=%d got=%d\n",
204 ctx, need, have);
1031 * inode is about to be destroyed, there is no need for i_lock.
1059 * that we'll then need to deal with elsewhere.
1123 * to sync IO... we need to flush dirty pages _before_
1230 * we need to wait for sync writes to complete and for dirty
1530 * If we no longer need to hold onto old our caps, and we may
1840 * can recover size and mtime, so we don't need to
1886 * After a recovering MDS goes active, we need to resend any caps
1981 * minimal set we @need. Also include the larger offset we are writing
1986 static int try_get_cap_refs(struct ceph_inode_info *ci, int need, int want,
1994 dout("get_cap_refs %p need %s want %s\n", inode,
1995 ceph_cap_string(need), ceph_cap_string(want));
2000 if ((file_wanted & need) == 0) {
2001 dout("try_get_cap_refs need %s file_wanted %s, EBADF\n",
2002 ceph_cap_string(need), ceph_cap_string(file_wanted));
2008 if (need & CEPH_CAP_FILE_WR) {
2035 if ((have & need) == need) {
2042 int not = want & ~(have & need);
2048 *got = need | (have & want);
2054 ceph_cap_string(have), ceph_cap_string(need));
2073 /* do we need to explicitly request a larger max_size? */
2093 int ceph_get_caps(struct ceph_inode_info *ci, int need, int want, int *got,
2104 try_get_cap_refs(ci, need, want,
2934 * we may need to release capabilities to the MDS (or schedule