Lines Matching refs:got
302 int got = (uintptr_t)priv; in ceph_readahead_cleanup() local
304 if (got) in ceph_readahead_cleanup()
305 ceph_put_cap_refs(ci, got); in ceph_readahead_cleanup()
354 int got = 0; in ceph_readahead() local
368 ret = ceph_try_get_caps(inode, CEPH_CAP_FILE_RD, want, true, &got); in ceph_readahead()
371 else if (!(got & want)) in ceph_readahead()
377 netfs_readahead(ractl, &ceph_netfs_read_ops, (void *)(uintptr_t)got); in ceph_readahead()
1355 int want, got, err; in ceph_filemap_fault() local
1368 got = 0; in ceph_filemap_fault()
1369 err = ceph_get_caps(vma->vm_file, CEPH_CAP_FILE_RD, want, -1, &got); in ceph_filemap_fault()
1374 inode, off, ceph_cap_string(got)); in ceph_filemap_fault()
1376 if ((got & (CEPH_CAP_FILE_CACHE | CEPH_CAP_FILE_LAZYIO)) || in ceph_filemap_fault()
1378 CEPH_DEFINE_RW_CONTEXT(rw_ctx, got); in ceph_filemap_fault()
1383 inode, off, ceph_cap_string(got), ret); in ceph_filemap_fault()
1387 ceph_put_cap_refs(ci, got); in ceph_filemap_fault()
1446 int want, got, err; in ceph_page_mkwrite() local
1482 got = 0; in ceph_page_mkwrite()
1483 err = ceph_get_caps(vma->vm_file, CEPH_CAP_FILE_WR, want, off + len, &got); in ceph_page_mkwrite()
1488 inode, off, len, ceph_cap_string(got)); in ceph_page_mkwrite()
1539 inode, off, len, ceph_cap_string(got), ret); in ceph_page_mkwrite()
1540 ceph_put_cap_refs_async(ci, got); in ceph_page_mkwrite()