Lines Matching refs:got
511 int got = 0, want = CEPH_CAP_FILE_EXCL | CEPH_CAP_DIR_CREATE; in try_prep_async_create() local
549 got = want; in try_prep_async_create()
552 return got; in try_prep_async_create()
2118 int want = 0, got = 0; in ceph_read_iter() local
2138 ret = ceph_get_caps(filp, CEPH_CAP_FILE_RD, want, -1, &got); in ceph_read_iter()
2147 if ((got & (CEPH_CAP_FILE_CACHE|CEPH_CAP_FILE_LAZYIO)) == 0 || in ceph_read_iter()
2153 ceph_cap_string(got)); in ceph_read_iter()
2170 CEPH_DEFINE_RW_CONTEXT(rw_ctx, got); in ceph_read_iter()
2173 ceph_cap_string(got)); in ceph_read_iter()
2180 inode, ceph_vinop(inode), ceph_cap_string(got), (int)ret); in ceph_read_iter()
2181 ceph_put_cap_refs(ci, got); in ceph_read_iter()
2271 int want = 0, got = 0; in ceph_splice_read() local
2290 ret = ceph_get_caps(in, CEPH_CAP_FILE_RD, want, -1, &got); in ceph_splice_read()
2294 if ((got & (CEPH_CAP_FILE_CACHE | CEPH_CAP_FILE_LAZYIO)) == 0) { in ceph_splice_read()
2297 ceph_cap_string(got)); in ceph_splice_read()
2299 ceph_put_cap_refs(ci, got); in ceph_splice_read()
2305 inode, ceph_vinop(inode), *ppos, len, ceph_cap_string(got)); in ceph_splice_read()
2307 rw_ctx.caps = got; in ceph_splice_read()
2313 inode, ceph_vinop(inode), ceph_cap_string(got), ret); in ceph_splice_read()
2315 ceph_put_cap_refs(ci, got); in ceph_splice_read()
2342 int err, want = 0, got; in ceph_write_iter() local
2413 got = 0; in ceph_write_iter()
2414 err = ceph_get_caps(file, CEPH_CAP_FILE_WR, want, pos + count, &got); in ceph_write_iter()
2425 inode, ceph_vinop(inode), pos, count, ceph_cap_string(got)); in ceph_write_iter()
2427 if ((got & (CEPH_CAP_FILE_BUFFER|CEPH_CAP_FILE_LAZYIO)) == 0 || in ceph_write_iter()
2487 ceph_cap_string(got)); in ceph_write_iter()
2488 ceph_put_cap_refs(ci, got); in ceph_write_iter()
2505 ceph_put_cap_refs(ci, got); in ceph_write_iter()
2665 int want, got = 0; in ceph_fallocate() local
2707 ret = ceph_get_caps(file, CEPH_CAP_FILE_WR, want, endoff, &got); in ceph_fallocate()
2731 ceph_put_cap_refs(ci, got); in ceph_fallocate()