snapc 157 drivers/block/rbd.c struct ceph_snap_context *snapc; snapc 338 drivers/block/rbd.c struct ceph_snap_context *snapc; /* for writes */ snapc 1110 drivers/block/rbd.c struct ceph_snap_context *snapc; snapc 1131 drivers/block/rbd.c snapc = ceph_create_snap_context(snap_count, GFP_KERNEL); snapc 1132 drivers/block/rbd.c if (!snapc) snapc 1134 drivers/block/rbd.c snapc->seq = le64_to_cpu(ondisk->snap_seq); snapc 1166 drivers/block/rbd.c snapc->snaps[i] = le64_to_cpu(snaps[i].id); snapc 1178 drivers/block/rbd.c ceph_put_snap_context(header->snapc); snapc 1186 drivers/block/rbd.c header->snapc = snapc; snapc 1196 drivers/block/rbd.c ceph_put_snap_context(snapc); snapc 1206 drivers/block/rbd.c rbd_assert(which < rbd_dev->header.snapc->num_snaps); snapc 1243 drivers/block/rbd.c struct ceph_snap_context *snapc = rbd_dev->header.snapc; snapc 1246 drivers/block/rbd.c found = bsearch(&snap_id, &snapc->snaps, snapc->num_snaps, snapc 1249 drivers/block/rbd.c return found ? (u32)(found - &snapc->snaps[0]) : BAD_SNAP_INDEX; snapc 1500 drivers/block/rbd.c !obj_req->img_request->snapc->num_snaps)) snapc 1566 drivers/block/rbd.c struct ceph_snap_context *snapc, int num_ops) snapc 1575 drivers/block/rbd.c req = ceph_osdc_alloc_request(osdc, snapc, num_ops, false, GFP_NOIO); snapc 1602 drivers/block/rbd.c return __rbd_obj_add_osd_request(obj_req, obj_req->img_request->snapc, snapc 1734 drivers/block/rbd.c struct ceph_snap_context *snapc) snapc 1747 drivers/block/rbd.c img_request->snapc = snapc; snapc 1780 drivers/block/rbd.c ceph_put_snap_context(img_request->snapc); snapc 3270 drivers/block/rbd.c struct ceph_snap_context *snapc = obj_req->img_request->snapc; snapc 3283 drivers/block/rbd.c for (i = 0; i < snapc->num_snaps; i++) { snapc 3285 drivers/block/rbd.c i + 1 < snapc->num_snaps) snapc 3290 drivers/block/rbd.c ret = rbd_object_map_update(obj_req, snapc->snaps[i], snapc 3317 drivers/block/rbd.c if (obj_req->img_request->snapc->num_snaps && bytes > 0) { snapc 4799 drivers/block/rbd.c struct ceph_snap_context *snapc = NULL; snapc 4865 drivers/block/rbd.c snapc = rbd_dev->header.snapc; snapc 4866 drivers/block/rbd.c ceph_get_snap_context(snapc); snapc 4877 drivers/block/rbd.c img_request = rbd_img_request_create(rbd_dev, op_type, snapc); snapc 4883 drivers/block/rbd.c snapc = NULL; /* img_request consumes a ref */ snapc 4905 drivers/block/rbd.c ceph_put_snap_context(snapc); snapc 6129 drivers/block/rbd.c struct ceph_snap_context *snapc = rbd_dev->header.snapc; snapc 6136 drivers/block/rbd.c while (which < snapc->num_snaps) { snapc 6138 drivers/block/rbd.c return snapc->snaps[which]; snapc 6147 drivers/block/rbd.c struct ceph_snap_context *snapc = rbd_dev->header.snapc; snapc 6152 drivers/block/rbd.c for (which = 0; !found && which < snapc->num_snaps; which++) { snapc 6155 drivers/block/rbd.c snap_id = snapc->snaps[which]; snapc 6273 drivers/block/rbd.c struct ceph_snap_context *snapc; snapc 6316 drivers/block/rbd.c snapc = ceph_create_snap_context(snap_count, GFP_KERNEL); snapc 6317 drivers/block/rbd.c if (!snapc) { snapc 6321 drivers/block/rbd.c snapc->seq = seq; snapc 6323 drivers/block/rbd.c snapc->snaps[i] = ceph_decode_64(&p); snapc 6325 drivers/block/rbd.c ceph_put_snap_context(rbd_dev->header.snapc); snapc 6326 drivers/block/rbd.c rbd_dev->header.snapc = snapc; snapc 6766 drivers/block/rbd.c ceph_put_snap_context(header->snapc); snapc 78 fs/ceph/addr.c struct ceph_snap_context *snapc; snapc 102 fs/ceph/addr.c snapc = ceph_get_snap_context(capsnap->context); snapc 106 fs/ceph/addr.c snapc = ceph_get_snap_context(ci->i_head_snapc); snapc 117 fs/ceph/addr.c snapc, snapc->seq, snapc->num_snaps); snapc 125 fs/ceph/addr.c page->private = (unsigned long)snapc; snapc 145 fs/ceph/addr.c struct ceph_snap_context *snapc = page_snap_context(page); snapc 167 fs/ceph/addr.c ceph_put_wrbuffer_cap_refs(ci, 1, snapc); snapc 168 fs/ceph/addr.c ceph_put_snap_context(snapc); snapc 494 fs/ceph/addr.c struct ceph_snap_context *snapc = NULL; snapc 505 fs/ceph/addr.c if (snapc && capsnap->context != page_snapc) snapc 521 fs/ceph/addr.c if (snapc) snapc 524 fs/ceph/addr.c snapc = ceph_get_snap_context(capsnap->context); snapc 526 fs/ceph/addr.c page_snapc == snapc || snapc 527 fs/ceph/addr.c page_snapc->seq > snapc->seq) snapc 530 fs/ceph/addr.c if (!snapc && ci->i_wrbuffer_ref_head) { snapc 531 fs/ceph/addr.c snapc = ceph_get_snap_context(ci->i_head_snapc); snapc 533 fs/ceph/addr.c snapc, ci->i_wrbuffer_ref_head); snapc 543 fs/ceph/addr.c return snapc; snapc 550 fs/ceph/addr.c struct ceph_snap_context *snapc = page_snap_context(page); snapc 554 fs/ceph/addr.c if (snapc != ci->i_head_snapc) { snapc 558 fs/ceph/addr.c if (capsnap->context == snapc) { snapc 584 fs/ceph/addr.c struct ceph_snap_context *snapc, *oldest; snapc 596 fs/ceph/addr.c snapc = page_snap_context(page); snapc 597 fs/ceph/addr.c if (!snapc) { snapc 601 fs/ceph/addr.c oldest = get_oldest_context(inode, &ceph_wbc, snapc); snapc 602 fs/ceph/addr.c if (snapc->seq > oldest->seq) { snapc 604 fs/ceph/addr.c inode, page, snapc); snapc 624 fs/ceph/addr.c inode, page, page->index, page_off, len, snapc, snapc->seq); snapc 632 fs/ceph/addr.c &ci->i_layout, snapc, page_off, len, snapc 660 fs/ceph/addr.c ceph_put_wrbuffer_cap_refs(ci, 1, snapc); snapc 661 fs/ceph/addr.c ceph_put_snap_context(snapc); /* page's reference */ snapc 702 fs/ceph/addr.c struct ceph_snap_context *snapc = req->r_snapc; snapc 765 fs/ceph/addr.c ceph_put_wrbuffer_cap_refs(ci, total_pages, snapc); snapc 787 fs/ceph/addr.c struct ceph_snap_context *snapc = NULL, *last_snapc = NULL, *pgsnapc; snapc 819 fs/ceph/addr.c snapc = get_oldest_context(inode, &ceph_wbc, NULL); snapc 820 fs/ceph/addr.c if (!snapc) { snapc 827 fs/ceph/addr.c snapc, snapc->seq, snapc->num_snaps); snapc 830 fs/ceph/addr.c if (ceph_wbc.head_snapc && snapc != last_snapc) { snapc 856 fs/ceph/addr.c last_snapc = snapc; snapc 893 fs/ceph/addr.c if (pgsnapc != snapc) { snapc 895 fs/ceph/addr.c pgsnapc, pgsnapc->seq, snapc, snapc->seq); snapc 1033 fs/ceph/addr.c snapc, ceph_wbc.truncate_seq, snapc 1043 fs/ceph/addr.c snapc, ceph_wbc.truncate_seq, snapc 1168 fs/ceph/addr.c if (page_snap_context(page) != snapc) snapc 1198 fs/ceph/addr.c struct ceph_snap_context *snapc) snapc 1201 fs/ceph/addr.c int ret = !oldest || snapc->seq <= oldest->seq; snapc 1227 fs/ceph/addr.c struct ceph_snap_context *snapc, *oldest; snapc 1239 fs/ceph/addr.c snapc = page_snap_context(page); snapc 1240 fs/ceph/addr.c if (snapc && snapc != ci->i_head_snapc) { snapc 1246 fs/ceph/addr.c if (snapc->seq > oldest->seq) { snapc 1249 fs/ceph/addr.c page, snapc); snapc 1254 fs/ceph/addr.c snapc = ceph_get_snap_context(snapc); snapc 1258 fs/ceph/addr.c context_is_writeable_or_written(inode, snapc)); snapc 1259 fs/ceph/addr.c ceph_put_snap_context(snapc); snapc 1268 fs/ceph/addr.c page, snapc); snapc 2961 fs/ceph/caps.c struct ceph_snap_context *snapc) snapc 2978 fs/ceph/caps.c if (ci->i_head_snapc == snapc) { snapc 2995 fs/ceph/caps.c if (capsnap->context == snapc) { snapc 867 fs/ceph/file.c struct ceph_snap_context *snapc; snapc 877 fs/ceph/file.c snapc = ceph_get_snap_context(capsnap->context); snapc 880 fs/ceph/file.c snapc = ceph_get_snap_context(ci->i_head_snapc); snapc 884 fs/ceph/file.c req = ceph_osdc_alloc_request(orig_req->r_osdc, snapc, 1, snapc 921 fs/ceph/file.c ceph_put_snap_context(snapc); snapc 927 fs/ceph/file.c struct ceph_snap_context *snapc, snapc 952 fs/ceph/file.c snapc, snapc ? snapc->seq : 0); snapc 981 fs/ceph/file.c flags, snapc, snapc 1130 fs/ceph/file.c struct ceph_snap_context *snapc) snapc 1152 fs/ceph/file.c file, pos, (unsigned)count, snapc, snapc->seq); snapc 1174 fs/ceph/file.c CEPH_OSD_OP_WRITE, flags, snapc, snapc 1515 fs/ceph/file.c struct ceph_snap_context *snapc; snapc 1524 fs/ceph/file.c snapc = ceph_get_snap_context(capsnap->context); snapc 1527 fs/ceph/file.c snapc = ceph_get_snap_context(ci->i_head_snapc); snapc 1534 fs/ceph/file.c written = ceph_direct_read_write(iocb, &data, snapc, snapc 1537 fs/ceph/file.c written = ceph_sync_write(iocb, &data, pos, snapc); snapc 1544 fs/ceph/file.c ceph_put_snap_context(snapc); snapc 312 fs/ceph/snap.c struct ceph_snap_context *snapc; snapc 348 fs/ceph/snap.c if (num > (SIZE_MAX - sizeof(*snapc)) / sizeof(u64)) snapc 350 fs/ceph/snap.c snapc = ceph_create_snap_context(num, GFP_NOFS); snapc 351 fs/ceph/snap.c if (!snapc) snapc 356 fs/ceph/snap.c snapc->seq = realm->seq; snapc 365 fs/ceph/snap.c snapc->snaps[num++] = snapc 367 fs/ceph/snap.c if (parent->cached_context->seq > snapc->seq) snapc 368 fs/ceph/snap.c snapc->seq = parent->cached_context->seq; snapc 370 fs/ceph/snap.c memcpy(snapc->snaps + num, realm->snaps, snapc 373 fs/ceph/snap.c memcpy(snapc->snaps + num, realm->prior_parent_snaps, snapc 377 fs/ceph/snap.c sort(snapc->snaps, num, sizeof(u64), cmpu64_rev, NULL); snapc 378 fs/ceph/snap.c snapc->num_snaps = num; snapc 380 fs/ceph/snap.c realm->ino, realm, snapc, snapc->seq, snapc 381 fs/ceph/snap.c (unsigned int) snapc->num_snaps); snapc 384 fs/ceph/snap.c realm->cached_context = snapc; snapc 1061 fs/ceph/super.h struct ceph_snap_context *snapc); snapc 474 include/linux/ceph/osd_client.h struct ceph_snap_context *snapc, snapc 486 include/linux/ceph/osd_client.h struct ceph_snap_context *snapc, snapc 551 net/ceph/osd_client.c struct ceph_snap_context *snapc = req->r_snapc; snapc 569 net/ceph/osd_client.c req->r_snapc = snapc; snapc 576 net/ceph/osd_client.c struct ceph_snap_context *snapc, snapc 600 net/ceph/osd_client.c req->r_snapc = ceph_get_snap_context(snapc); snapc 1069 net/ceph/osd_client.c struct ceph_snap_context *snapc, snapc 1084 net/ceph/osd_client.c req = ceph_osdc_alloc_request(osdc, snapc, num_ops, use_mempool, snapc 5277 net/ceph/osd_client.c struct ceph_snap_context *snapc, snapc 5289 net/ceph/osd_client.c snapc, truncate_seq, truncate_size, snapc 30 net/ceph/snapshot.c struct ceph_snap_context *snapc; snapc 34 net/ceph/snapshot.c size += snap_count * sizeof (snapc->snaps[0]); snapc 35 net/ceph/snapshot.c snapc = kzalloc(size, gfp_flags); snapc 36 net/ceph/snapshot.c if (!snapc) snapc 39 net/ceph/snapshot.c refcount_set(&snapc->nref, 1); snapc 40 net/ceph/snapshot.c snapc->num_snaps = snap_count; snapc 42 net/ceph/snapshot.c return snapc;