Lines Matching refs:got
463 int got = 0, want = CEPH_CAP_FILE_CACHE; in ceph_init_request() local
495 ret = ceph_try_get_caps(inode, CEPH_CAP_FILE_RD, want, true, &got); in ceph_init_request()
501 if (!(got & want)) { in ceph_init_request()
511 priv->caps = got; in ceph_init_request()
517 if (got) in ceph_init_request()
518 ceph_put_cap_refs(ceph_inode(inode), got); in ceph_init_request()
1964 int want, got, err; in ceph_filemap_fault() local
1980 got = 0; in ceph_filemap_fault()
1981 err = ceph_get_caps(vma->vm_file, CEPH_CAP_FILE_RD, want, -1, &got); in ceph_filemap_fault()
1986 off, ceph_cap_string(got)); in ceph_filemap_fault()
1988 if ((got & (CEPH_CAP_FILE_CACHE | CEPH_CAP_FILE_LAZYIO)) || in ceph_filemap_fault()
1990 CEPH_DEFINE_RW_CONTEXT(rw_ctx, got); in ceph_filemap_fault()
1995 ceph_vinop(inode), off, ceph_cap_string(got), ret); in ceph_filemap_fault()
1999 ceph_put_cap_refs(ci, got); in ceph_filemap_fault()
2059 int want, got, err; in ceph_page_mkwrite() local
2085 got = 0; in ceph_page_mkwrite()
2086 err = ceph_get_caps(vma->vm_file, CEPH_CAP_FILE_WR, want, off + len, &got); in ceph_page_mkwrite()
2091 off, len, ceph_cap_string(got)); in ceph_page_mkwrite()
2140 ceph_vinop(inode), off, len, ceph_cap_string(got), ret); in ceph_page_mkwrite()
2141 ceph_put_cap_refs_async(ci, got); in ceph_page_mkwrite()