Searched refs:snapc (Results 1 – 8 of 8) sorted by relevance
| /linux/net/ceph/ |
| H A D | snapshot.c | 30 struct ceph_snap_context *snapc; in ceph_create_snap_context() local 34 size += snap_count * sizeof (snapc->snaps[0]); in ceph_create_snap_context() 35 snapc = kzalloc(size, gfp_flags); in ceph_create_snap_context() 36 if (!snapc) in ceph_create_snap_context() 39 refcount_set(&snapc->nref, 1); in ceph_create_snap_context() 40 snapc->num_snaps = snap_count; in ceph_create_snap_context() 42 return snapc; in ceph_create_snap_context()
|
| H A D | osd_client.c | 545 struct ceph_snap_context *snapc, in ceph_osdc_alloc_request() argument 569 req->r_snapc = ceph_get_snap_context(snapc); in ceph_osdc_alloc_request() 1061 struct ceph_snap_context *snapc, in ceph_osdc_new_request() argument 1077 req = ceph_osdc_alloc_request(osdc, snapc, num_ops, use_mempool, in ceph_osdc_new_request()
|
| /linux/fs/ceph/ |
| H A D | addr.c | 87 struct ceph_snap_context *snapc; in ceph_dirty_folio() local 107 snapc = ceph_get_snap_context(capsnap->context); in ceph_dirty_folio() 111 snapc = ceph_get_snap_context(ci->i_head_snapc); in ceph_dirty_folio() 122 snapc, snapc->seq, snapc->num_snaps); in ceph_dirty_folio() 130 folio_attach_private(folio, snapc); in ceph_dirty_folio() 146 struct ceph_snap_context *snapc; in ceph_invalidate_folio() local 160 snapc = folio_detach_private(folio); in ceph_invalidate_folio() 161 ceph_put_wrbuffer_cap_refs(ci, 1, snapc); in ceph_invalidate_folio() 162 ceph_put_snap_context(snapc); in ceph_invalidate_folio() 587 struct ceph_snap_context *snapc; member [all …]
|
| H A D | snap.c | 342 struct ceph_snap_context *snapc; in build_snap_context() local 377 if ((size_t)num > (SIZE_MAX - sizeof(*snapc)) / sizeof(u64)) in build_snap_context() 379 snapc = ceph_create_snap_context(num, GFP_NOFS); in build_snap_context() 380 if (!snapc) in build_snap_context() 385 snapc->seq = realm->seq; in build_snap_context() 394 snapc->snaps[num++] = in build_snap_context() 396 if (parent->cached_context->seq > snapc->seq) in build_snap_context() 397 snapc->seq = parent->cached_context->seq; in build_snap_context() 399 memcpy(snapc->snaps + num, realm->snaps, in build_snap_context() 402 memcpy(snapc->snaps + num, realm->prior_parent_snaps, in build_snap_context() [all …]
|
| H A D | file.c | 1415 struct ceph_snap_context *snapc; in ceph_aio_retry_work() local 1425 snapc = ceph_get_snap_context(capsnap->context); in ceph_aio_retry_work() 1428 snapc = ceph_get_snap_context(ci->i_head_snapc); in ceph_aio_retry_work() 1432 req = ceph_osdc_alloc_request(orig_req->r_osdc, snapc, 1, in ceph_aio_retry_work() 1469 ceph_put_snap_context(snapc); in ceph_aio_retry_work() 1475 struct ceph_snap_context *snapc, in ceph_direct_read_write() argument 1503 snapc, snapc ? snapc->seq : 0); in ceph_direct_read_write() 1539 flags, snapc, in ceph_direct_read_write() 1705 struct ceph_snap_context *snapc) in ceph_sync_write() argument 1727 (unsigned)count, snapc, snapc->seq); in ceph_sync_write() [all …]
|
| H A D | super.h | 1268 struct ceph_snap_context *snapc);
|
| H A D | caps.c | 3344 struct ceph_snap_context *snapc) in ceph_put_wrbuffer_cap_refs() argument 3361 if (ci->i_head_snapc == snapc) { in ceph_put_wrbuffer_cap_refs() 3377 if (iter->context == snapc) { in ceph_put_wrbuffer_cap_refs()
|
| /linux/include/linux/ceph/ |
| H A D | osd_client.h | 543 struct ceph_snap_context *snapc, 555 struct ceph_snap_context *snapc,
|