Home
last modified time | relevance | path

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

/Linux-v4.19/net/ceph/
Dsnapshot.c43 struct ceph_snap_context *snapc; in ceph_create_snap_context() local
47 size += snap_count * sizeof (snapc->snaps[0]); in ceph_create_snap_context()
48 snapc = kzalloc(size, gfp_flags); in ceph_create_snap_context()
49 if (!snapc) in ceph_create_snap_context()
52 refcount_set(&snapc->nref, 1); in ceph_create_snap_context()
53 snapc->num_snaps = snap_count; in ceph_create_snap_context()
55 return snapc; in ceph_create_snap_context()
Dosd_client.c548 struct ceph_snap_context *snapc = req->r_snapc; in request_reinit() local
566 req->r_snapc = snapc; in request_reinit()
573 struct ceph_snap_context *snapc, in ceph_osdc_alloc_request() argument
597 req->r_snapc = ceph_get_snap_context(snapc); in ceph_osdc_alloc_request()
987 struct ceph_snap_context *snapc, in ceph_osdc_new_request() argument
1002 req = ceph_osdc_alloc_request(osdc, snapc, num_ops, use_mempool, in ceph_osdc_new_request()
5136 struct ceph_snap_context *snapc, in ceph_osdc_writepages() argument
5148 snapc, truncate_seq, truncate_size, in ceph_osdc_writepages()
/Linux-v4.19/fs/ceph/
Daddr.c77 struct ceph_snap_context *snapc; in ceph_set_page_dirty() local
101 snapc = ceph_get_snap_context(capsnap->context); in ceph_set_page_dirty()
105 snapc = ceph_get_snap_context(ci->i_head_snapc); in ceph_set_page_dirty()
116 snapc, snapc->seq, snapc->num_snaps); in ceph_set_page_dirty()
124 page->private = (unsigned long)snapc; in ceph_set_page_dirty()
144 struct ceph_snap_context *snapc = page_snap_context(page); in ceph_invalidatepage() local
166 ceph_put_wrbuffer_cap_refs(ci, 1, snapc); in ceph_invalidatepage()
167 ceph_put_snap_context(snapc); in ceph_invalidatepage()
490 struct ceph_snap_context *snapc = NULL; in get_oldest_context() local
501 if (snapc && capsnap->context != page_snapc) in get_oldest_context()
[all …]
Dsnap.c307 struct ceph_snap_context *snapc; in build_snap_context() local
343 if (num > (SIZE_MAX - sizeof(*snapc)) / sizeof(u64)) in build_snap_context()
345 snapc = ceph_create_snap_context(num, GFP_NOFS); in build_snap_context()
346 if (!snapc) in build_snap_context()
351 snapc->seq = realm->seq; in build_snap_context()
360 snapc->snaps[num++] = in build_snap_context()
362 if (parent->cached_context->seq > snapc->seq) in build_snap_context()
363 snapc->seq = parent->cached_context->seq; in build_snap_context()
365 memcpy(snapc->snaps + num, realm->snaps, in build_snap_context()
368 memcpy(snapc->snaps + num, realm->prior_parent_snaps, in build_snap_context()
[all …]
Dfile.c851 struct ceph_snap_context *snapc; in ceph_aio_retry_work() local
861 snapc = ceph_get_snap_context(capsnap->context); in ceph_aio_retry_work()
864 snapc = ceph_get_snap_context(ci->i_head_snapc); in ceph_aio_retry_work()
868 req = ceph_osdc_alloc_request(orig_req->r_osdc, snapc, 2, in ceph_aio_retry_work()
905 ceph_put_snap_context(snapc); in ceph_aio_retry_work()
911 struct ceph_snap_context *snapc, in ceph_direct_read_write() argument
936 snapc, snapc->seq); in ceph_direct_read_write()
969 flags, snapc, in ceph_direct_read_write()
1118 struct ceph_snap_context *snapc) in ceph_sync_write() argument
1140 file, pos, (unsigned)count, snapc, snapc->seq); in ceph_sync_write()
[all …]
Dsuper.h993 struct ceph_snap_context *snapc);
Dcaps.c2907 struct ceph_snap_context *snapc) in ceph_put_wrbuffer_cap_refs() argument
2924 if (ci->i_head_snapc == snapc) { in ceph_put_wrbuffer_cap_refs()
2941 if (capsnap->context == snapc) { in ceph_put_wrbuffer_cap_refs()
/Linux-v4.19/drivers/block/
Drbd.c151 struct ceph_snap_context *snapc; member
283 struct ceph_snap_context *snapc; /* for writes */ member
1021 struct ceph_snap_context *snapc; in rbd_header_from_disk() local
1042 snapc = ceph_create_snap_context(snap_count, GFP_KERNEL); in rbd_header_from_disk()
1043 if (!snapc) in rbd_header_from_disk()
1045 snapc->seq = le64_to_cpu(ondisk->snap_seq); in rbd_header_from_disk()
1077 snapc->snaps[i] = le64_to_cpu(snaps[i].id); in rbd_header_from_disk()
1089 ceph_put_snap_context(header->snapc); in rbd_header_from_disk()
1097 header->snapc = snapc; in rbd_header_from_disk()
1107 ceph_put_snap_context(snapc); in rbd_header_from_disk()
[all …]
/Linux-v4.19/include/linux/ceph/
Dosd_client.h459 struct ceph_snap_context *snapc,
471 struct ceph_snap_context *snapc,