Home
last modified time | relevance | path

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

/Linux-v5.15/net/ceph/
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()
Dosd_client.c553 struct ceph_snap_context *snapc = req->r_snapc; in request_reinit() local
571 req->r_snapc = snapc; in request_reinit()
578 struct ceph_snap_context *snapc, in ceph_osdc_alloc_request() argument
602 req->r_snapc = ceph_get_snap_context(snapc); in ceph_osdc_alloc_request()
1070 struct ceph_snap_context *snapc, in ceph_osdc_new_request() argument
1085 req = ceph_osdc_alloc_request(osdc, snapc, num_ops, use_mempool, in ceph_osdc_new_request()
/Linux-v5.15/fs/ceph/
Daddr.c84 struct ceph_snap_context *snapc; in ceph_set_page_dirty() local
104 snapc = ceph_get_snap_context(capsnap->context); in ceph_set_page_dirty()
108 snapc = ceph_get_snap_context(ci->i_head_snapc); in ceph_set_page_dirty()
119 snapc, snapc->seq, snapc->num_snaps); in ceph_set_page_dirty()
127 attach_page_private(page, snapc); in ceph_set_page_dirty()
142 struct ceph_snap_context *snapc; in ceph_invalidatepage() local
162 snapc = detach_page_private(page); in ceph_invalidatepage()
163 ceph_put_wrbuffer_cap_refs(ci, 1, snapc); in ceph_invalidatepage()
164 ceph_put_snap_context(snapc); in ceph_invalidatepage()
398 struct ceph_snap_context *snapc = NULL; in get_oldest_context() local
[all …]
Dsnap.c326 struct ceph_snap_context *snapc; in build_snap_context() local
362 if (num > (SIZE_MAX - sizeof(*snapc)) / sizeof(u64)) in build_snap_context()
364 snapc = ceph_create_snap_context(num, GFP_NOFS); in build_snap_context()
365 if (!snapc) in build_snap_context()
370 snapc->seq = realm->seq; in build_snap_context()
379 snapc->snaps[num++] = in build_snap_context()
381 if (parent->cached_context->seq > snapc->seq) in build_snap_context()
382 snapc->seq = parent->cached_context->seq; in build_snap_context()
384 memcpy(snapc->snaps + num, realm->snaps, in build_snap_context()
387 memcpy(snapc->snaps + num, realm->prior_parent_snaps, in build_snap_context()
[all …]
Dfile.c1115 struct ceph_snap_context *snapc; in ceph_aio_retry_work() local
1125 snapc = ceph_get_snap_context(capsnap->context); in ceph_aio_retry_work()
1128 snapc = ceph_get_snap_context(ci->i_head_snapc); in ceph_aio_retry_work()
1132 req = ceph_osdc_alloc_request(orig_req->r_osdc, snapc, 1, in ceph_aio_retry_work()
1169 ceph_put_snap_context(snapc); in ceph_aio_retry_work()
1175 struct ceph_snap_context *snapc, in ceph_direct_read_write() argument
1201 snapc, snapc ? snapc->seq : 0); in ceph_direct_read_write()
1230 flags, snapc, in ceph_direct_read_write()
1386 struct ceph_snap_context *snapc) in ceph_sync_write() argument
1408 file, pos, (unsigned)count, snapc, snapc->seq); in ceph_sync_write()
[all …]
Dsuper.h1163 struct ceph_snap_context *snapc);
Dcaps.c3143 struct ceph_snap_context *snapc) in ceph_put_wrbuffer_cap_refs() argument
3160 if (ci->i_head_snapc == snapc) { in ceph_put_wrbuffer_cap_refs()
3177 if (capsnap->context == snapc) { in ceph_put_wrbuffer_cap_refs()
/Linux-v5.15/drivers/block/
Drbd.c157 struct ceph_snap_context *snapc; member
338 struct ceph_snap_context *snapc; /* for writes */ member
1008 struct ceph_snap_context *snapc; in rbd_header_from_disk() local
1029 snapc = ceph_create_snap_context(snap_count, GFP_KERNEL); in rbd_header_from_disk()
1030 if (!snapc) in rbd_header_from_disk()
1032 snapc->seq = le64_to_cpu(ondisk->snap_seq); in rbd_header_from_disk()
1064 snapc->snaps[i] = le64_to_cpu(snaps[i].id); in rbd_header_from_disk()
1076 ceph_put_snap_context(header->snapc); in rbd_header_from_disk()
1084 header->snapc = snapc; in rbd_header_from_disk()
1094 ceph_put_snap_context(snapc); in rbd_header_from_disk()
[all …]
/Linux-v5.15/include/linux/ceph/
Dosd_client.h480 struct ceph_snap_context *snapc,
492 struct ceph_snap_context *snapc,