Home
last modified time | relevance | path

Searched refs:snapc (Results 1 – 9 of 9) sorted by relevance

/openbmc/linux/net/ceph/
H A Dsnapshot.c30 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 Dosd_client.c568 struct ceph_snap_context *snapc, in ceph_osdc_alloc_request() argument
592 req->r_snapc = ceph_get_snap_context(snapc); in ceph_osdc_alloc_request()
1084 struct ceph_snap_context *snapc, in ceph_osdc_new_request() argument
1100 req = ceph_osdc_alloc_request(osdc, snapc, num_ops, use_mempool, in ceph_osdc_new_request()
/openbmc/linux/fs/ceph/
H A Daddr.c84 struct ceph_snap_context *snapc; in ceph_dirty_folio() local
103 snapc = ceph_get_snap_context(capsnap->context); in ceph_dirty_folio()
107 snapc = ceph_get_snap_context(ci->i_head_snapc); in ceph_dirty_folio()
118 snapc, snapc->seq, snapc->num_snaps); in ceph_dirty_folio()
126 folio_attach_private(folio, snapc); in ceph_dirty_folio()
141 struct ceph_snap_context *snapc; in ceph_invalidate_folio() local
157 snapc = folio_detach_private(folio); in ceph_invalidate_folio()
158 ceph_put_wrbuffer_cap_refs(ci, 1, snapc); in ceph_invalidate_folio()
159 ceph_put_snap_context(snapc); in ceph_invalidate_folio()
570 struct ceph_snap_context *snapc = NULL; in get_oldest_context() local
[all …]
H A Dsnap.c338 struct ceph_snap_context *snapc; in build_snap_context() local
373 if (num > (SIZE_MAX - sizeof(*snapc)) / sizeof(u64)) in build_snap_context()
375 snapc = ceph_create_snap_context(num, GFP_NOFS); in build_snap_context()
376 if (!snapc) in build_snap_context()
381 snapc->seq = realm->seq; in build_snap_context()
390 snapc->snaps[num++] = in build_snap_context()
392 if (parent->cached_context->seq > snapc->seq) in build_snap_context()
393 snapc->seq = parent->cached_context->seq; in build_snap_context()
395 memcpy(snapc->snaps + num, realm->snaps, in build_snap_context()
398 memcpy(snapc->snaps + num, realm->prior_parent_snaps, in build_snap_context()
[all …]
H A Dfile.c1326 struct ceph_snap_context *snapc; in ceph_aio_retry_work() local
1336 snapc = ceph_get_snap_context(capsnap->context); in ceph_aio_retry_work()
1339 snapc = ceph_get_snap_context(ci->i_head_snapc); in ceph_aio_retry_work()
1343 req = ceph_osdc_alloc_request(orig_req->r_osdc, snapc, 1, in ceph_aio_retry_work()
1380 ceph_put_snap_context(snapc); in ceph_aio_retry_work()
1386 struct ceph_snap_context *snapc, in ceph_direct_read_write() argument
1413 snapc, snapc ? snapc->seq : 0); in ceph_direct_read_write()
1448 flags, snapc, in ceph_direct_read_write()
1614 struct ceph_snap_context *snapc) in ceph_sync_write() argument
1635 file, pos, (unsigned)count, snapc, snapc->seq); in ceph_sync_write()
[all …]
H A Dsuper.h1255 struct ceph_snap_context *snapc);
H A Dcaps.c3268 struct ceph_snap_context *snapc) in ceph_put_wrbuffer_cap_refs() argument
3284 if (ci->i_head_snapc == snapc) { in ceph_put_wrbuffer_cap_refs()
3301 if (iter->context == snapc) { in ceph_put_wrbuffer_cap_refs()
/openbmc/linux/drivers/block/
H A Drbd.c157 struct ceph_snap_context *snapc; member
338 struct ceph_snap_context *snapc; /* for writes */ member
1000 ceph_put_snap_context(header->snapc); in rbd_image_header_cleanup()
1015 struct ceph_snap_context *snapc; in rbd_header_from_disk() local
1036 snapc = ceph_create_snap_context(snap_count, GFP_KERNEL); in rbd_header_from_disk()
1037 if (!snapc) in rbd_header_from_disk()
1039 snapc->seq = le64_to_cpu(ondisk->snap_seq); in rbd_header_from_disk()
1071 snapc->snaps[i] = le64_to_cpu(snaps[i].id); in rbd_header_from_disk()
1086 header->snapc = snapc; in rbd_header_from_disk()
1096 ceph_put_snap_context(snapc); in rbd_header_from_disk()
[all …]
/openbmc/linux/include/linux/ceph/
H A Dosd_client.h551 struct ceph_snap_context *snapc,
563 struct ceph_snap_context *snapc,