Home
last modified time | relevance | path

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

/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.c1150 struct ceph_snap_context *snapc; in ceph_aio_retry_work() local
1160 snapc = ceph_get_snap_context(capsnap->context); in ceph_aio_retry_work()
1163 snapc = ceph_get_snap_context(ci->i_head_snapc); in ceph_aio_retry_work()
1167 req = ceph_osdc_alloc_request(orig_req->r_osdc, snapc, 1, in ceph_aio_retry_work()
1204 ceph_put_snap_context(snapc); in ceph_aio_retry_work()
1210 struct ceph_snap_context *snapc, in ceph_direct_read_write() argument
1236 snapc, snapc ? snapc->seq : 0); in ceph_direct_read_write()
1265 flags, snapc, in ceph_direct_read_write()
1421 struct ceph_snap_context *snapc) in ceph_sync_write() argument
1443 file, pos, (unsigned)count, snapc, snapc->seq); in ceph_sync_write()
[all …]
Dsuper.h1162 struct ceph_snap_context *snapc);
Dcaps.c3149 struct ceph_snap_context *snapc) in ceph_put_wrbuffer_cap_refs() argument
3166 if (ci->i_head_snapc == snapc) { in ceph_put_wrbuffer_cap_refs()
3183 if (capsnap->context == snapc) { in ceph_put_wrbuffer_cap_refs()