Home
last modified time | relevance | path

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

/linux-4.4.14/net/ceph/
Dsnapshot.c45 struct ceph_snap_context *snapc; in ceph_create_snap_context() local
49 size += snap_count * sizeof (snapc->snaps[0]); in ceph_create_snap_context()
50 snapc = kzalloc(size, gfp_flags); in ceph_create_snap_context()
51 if (!snapc) in ceph_create_snap_context()
54 atomic_set(&snapc->nref, 1); in ceph_create_snap_context()
55 snapc->num_snaps = snap_count; in ceph_create_snap_context()
57 return snapc; in ceph_create_snap_context()
Dosd_client.c363 struct ceph_snap_context *snapc, in ceph_osdc_alloc_request() argument
382 msg_size += 8 * (snapc ? snapc->num_snaps : 0); /* snaps */ in ceph_osdc_alloc_request()
775 struct ceph_snap_context *snapc, in ceph_osdc_new_request() argument
790 req = ceph_osdc_alloc_request(osdc, snapc, num_ops, use_mempool, in ceph_osdc_new_request()
2403 struct ceph_snap_context *snapc, u64 snap_id, in ceph_osdc_build_request() argument
2414 req->r_snapc = ceph_get_snap_context(snapc); in ceph_osdc_build_request()
2465 for (i = 0; i < snapc->num_snaps; i++) { in ceph_osdc_build_request()
2735 struct ceph_snap_context *snapc, in ceph_osdc_writepages() argument
2749 snapc, truncate_seq, truncate_size, in ceph_osdc_writepages()
2759 ceph_osdc_build_request(req, off, snapc, CEPH_NOSNAP, mtime); in ceph_osdc_writepages()
/linux-4.4.14/fs/ceph/
Daddr.c74 struct ceph_snap_context *snapc; in ceph_set_page_dirty() local
98 snapc = ceph_get_snap_context(capsnap->context); in ceph_set_page_dirty()
102 snapc = ceph_get_snap_context(ci->i_head_snapc); in ceph_set_page_dirty()
113 snapc, snapc->seq, snapc->num_snaps); in ceph_set_page_dirty()
121 page->private = (unsigned long)snapc; in ceph_set_page_dirty()
141 struct ceph_snap_context *snapc = page_snap_context(page); in ceph_invalidatepage() local
170 ceph_put_wrbuffer_cap_refs(ci, 1, snapc); in ceph_invalidatepage()
171 ceph_put_snap_context(snapc); in ceph_invalidatepage()
446 struct ceph_snap_context *snapc = NULL; in get_oldest_context() local
454 snapc = ceph_get_snap_context(capsnap->context); 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.c624 struct ceph_snap_context *snapc) in ceph_sync_direct_write() argument
670 CEPH_OSD_OP_WRITE, flags, snapc, in ceph_sync_direct_write()
699 ceph_osdc_build_request(req, pos, snapc, vino.snap, &mtime); in ceph_sync_direct_write()
740 struct ceph_snap_context *snapc) in ceph_sync_write() argument
785 CEPH_OSD_OP_WRITE, flags, snapc, in ceph_sync_write()
830 ceph_osdc_build_request(req, pos, snapc, vino.snap, &mtime); in ceph_sync_write()
1071 struct ceph_snap_context *snapc; in ceph_write_iter() local
1081 snapc = ceph_get_snap_context(capsnap->context); in ceph_write_iter()
1084 snapc = ceph_get_snap_context(ci->i_head_snapc); in ceph_write_iter()
1092 snapc); in ceph_write_iter()
[all …]
Dsuper.h889 struct ceph_snap_context *snapc);
Dcaps.c2649 struct ceph_snap_context *snapc) in ceph_put_wrbuffer_cap_refs() argument
2662 if (ci->i_head_snapc == snapc) { in ceph_put_wrbuffer_cap_refs()
2679 if (capsnap->context == snapc) { in ceph_put_wrbuffer_cap_refs()
/linux-4.4.14/drivers/block/
Drbd.c152 struct ceph_snap_context *snapc; member
298 struct ceph_snap_context *snapc; /* for writes */ member
918 struct ceph_snap_context *snapc; in rbd_header_from_disk() local
944 snapc = ceph_create_snap_context(snap_count, GFP_KERNEL); in rbd_header_from_disk()
945 if (!snapc) in rbd_header_from_disk()
947 snapc->seq = le64_to_cpu(ondisk->snap_seq); in rbd_header_from_disk()
979 snapc->snaps[i] = le64_to_cpu(snaps[i].id); in rbd_header_from_disk()
996 ceph_put_snap_context(header->snapc); in rbd_header_from_disk()
1004 header->snapc = snapc; in rbd_header_from_disk()
1014 ceph_put_snap_context(snapc); in rbd_header_from_disk()
[all …]
/linux-4.4.14/include/linux/ceph/
Dosd_client.h317 struct ceph_snap_context *snapc,
323 struct ceph_snap_context *snapc,
333 struct ceph_snap_context *snapc,