Searched refs:snapc (Results 1 – 9 of 9) sorted by relevance
/Linux-v5.4/net/ceph/ |
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()
|
D | osd_client.c | 551 struct ceph_snap_context *snapc = req->r_snapc; in request_reinit() local 569 req->r_snapc = snapc; in request_reinit() 576 struct ceph_snap_context *snapc, in ceph_osdc_alloc_request() argument 600 req->r_snapc = ceph_get_snap_context(snapc); in ceph_osdc_alloc_request() 1069 struct ceph_snap_context *snapc, in ceph_osdc_new_request() argument 1084 req = ceph_osdc_alloc_request(osdc, snapc, num_ops, use_mempool, in ceph_osdc_new_request() 5277 struct ceph_snap_context *snapc, in ceph_osdc_writepages() argument 5289 snapc, truncate_seq, truncate_size, in ceph_osdc_writepages()
|
/Linux-v5.4/fs/ceph/ |
D | addr.c | 78 struct ceph_snap_context *snapc; in ceph_set_page_dirty() local 102 snapc = ceph_get_snap_context(capsnap->context); in ceph_set_page_dirty() 106 snapc = ceph_get_snap_context(ci->i_head_snapc); in ceph_set_page_dirty() 117 snapc, snapc->seq, snapc->num_snaps); in ceph_set_page_dirty() 125 page->private = (unsigned long)snapc; in ceph_set_page_dirty() 145 struct ceph_snap_context *snapc = page_snap_context(page); in ceph_invalidatepage() local 167 ceph_put_wrbuffer_cap_refs(ci, 1, snapc); in ceph_invalidatepage() 168 ceph_put_snap_context(snapc); in ceph_invalidatepage() 494 struct ceph_snap_context *snapc = NULL; in get_oldest_context() local 505 if (snapc && capsnap->context != page_snapc) in get_oldest_context() [all …]
|
D | snap.c | 312 struct ceph_snap_context *snapc; in build_snap_context() local 348 if (num > (SIZE_MAX - sizeof(*snapc)) / sizeof(u64)) in build_snap_context() 350 snapc = ceph_create_snap_context(num, GFP_NOFS); in build_snap_context() 351 if (!snapc) in build_snap_context() 356 snapc->seq = realm->seq; in build_snap_context() 365 snapc->snaps[num++] = in build_snap_context() 367 if (parent->cached_context->seq > snapc->seq) in build_snap_context() 368 snapc->seq = parent->cached_context->seq; in build_snap_context() 370 memcpy(snapc->snaps + num, realm->snaps, in build_snap_context() 373 memcpy(snapc->snaps + num, realm->prior_parent_snaps, in build_snap_context() [all …]
|
D | file.c | 867 struct ceph_snap_context *snapc; in ceph_aio_retry_work() local 877 snapc = ceph_get_snap_context(capsnap->context); in ceph_aio_retry_work() 880 snapc = ceph_get_snap_context(ci->i_head_snapc); in ceph_aio_retry_work() 884 req = ceph_osdc_alloc_request(orig_req->r_osdc, snapc, 1, in ceph_aio_retry_work() 921 ceph_put_snap_context(snapc); in ceph_aio_retry_work() 927 struct ceph_snap_context *snapc, in ceph_direct_read_write() argument 952 snapc, snapc ? snapc->seq : 0); in ceph_direct_read_write() 981 flags, snapc, in ceph_direct_read_write() 1130 struct ceph_snap_context *snapc) in ceph_sync_write() argument 1152 file, pos, (unsigned)count, snapc, snapc->seq); in ceph_sync_write() [all …]
|
D | super.h | 1061 struct ceph_snap_context *snapc);
|
D | caps.c | 2957 struct ceph_snap_context *snapc) in ceph_put_wrbuffer_cap_refs() argument 2974 if (ci->i_head_snapc == snapc) { in ceph_put_wrbuffer_cap_refs() 2991 if (capsnap->context == snapc) { in ceph_put_wrbuffer_cap_refs()
|
/Linux-v5.4/drivers/block/ |
D | rbd.c | 157 struct ceph_snap_context *snapc; member 338 struct ceph_snap_context *snapc; /* for writes */ member 1110 struct ceph_snap_context *snapc; in rbd_header_from_disk() local 1131 snapc = ceph_create_snap_context(snap_count, GFP_KERNEL); in rbd_header_from_disk() 1132 if (!snapc) in rbd_header_from_disk() 1134 snapc->seq = le64_to_cpu(ondisk->snap_seq); in rbd_header_from_disk() 1166 snapc->snaps[i] = le64_to_cpu(snaps[i].id); in rbd_header_from_disk() 1178 ceph_put_snap_context(header->snapc); in rbd_header_from_disk() 1186 header->snapc = snapc; in rbd_header_from_disk() 1196 ceph_put_snap_context(snapc); in rbd_header_from_disk() [all …]
|
/Linux-v5.4/include/linux/ceph/ |
D | osd_client.h | 474 struct ceph_snap_context *snapc, 486 struct ceph_snap_context *snapc,
|