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_dirty_folio() local
104 snapc = ceph_get_snap_context(capsnap->context); in ceph_dirty_folio()
108 snapc = ceph_get_snap_context(ci->i_head_snapc); in ceph_dirty_folio()
119 snapc, snapc->seq, snapc->num_snaps); in ceph_dirty_folio()
127 folio_attach_private(folio, snapc); in ceph_dirty_folio()
142 struct ceph_snap_context *snapc; in ceph_invalidate_folio() local
158 snapc = folio_detach_private(folio); in ceph_invalidate_folio()
159 ceph_put_wrbuffer_cap_refs(ci, 1, snapc); in ceph_invalidate_folio()
160 ceph_put_snap_context(snapc); in ceph_invalidate_folio()
566 struct ceph_snap_context *snapc = NULL; in get_oldest_context() local
[all …]
Dsnap.c338 struct ceph_snap_context *snapc; in build_snap_context() local
373 if (num > (SIZE_MAX - sizeof(*snapc)) / sizeof(u64)) in build_snap_context()
375 snapc = ceph_create_snap_context(num, GFP_NOFS); in build_snap_context()
376 if (!snapc) in build_snap_context()
381 snapc->seq = realm->seq; in build_snap_context()
390 snapc->snaps[num++] = in build_snap_context()
392 if (parent->cached_context->seq > snapc->seq) in build_snap_context()
393 snapc->seq = parent->cached_context->seq; in build_snap_context()
395 memcpy(snapc->snaps + num, realm->snaps, in build_snap_context()
398 memcpy(snapc->snaps + num, realm->prior_parent_snaps, in build_snap_context()
[all …]
Dfile.c1326 struct ceph_snap_context *snapc; in ceph_aio_retry_work() local
1336 snapc = ceph_get_snap_context(capsnap->context); in ceph_aio_retry_work()
1339 snapc = ceph_get_snap_context(ci->i_head_snapc); in ceph_aio_retry_work()
1343 req = ceph_osdc_alloc_request(orig_req->r_osdc, snapc, 1, in ceph_aio_retry_work()
1380 ceph_put_snap_context(snapc); in ceph_aio_retry_work()
1386 struct ceph_snap_context *snapc, in ceph_direct_read_write() argument
1413 snapc, snapc ? snapc->seq : 0); in ceph_direct_read_write()
1447 flags, snapc, in ceph_direct_read_write()
1611 struct ceph_snap_context *snapc) in ceph_sync_write() argument
1632 file, pos, (unsigned)count, snapc, snapc->seq); in ceph_sync_write()
[all …]
Dsuper.h1254 struct ceph_snap_context *snapc);
Dcaps.c3268 struct ceph_snap_context *snapc) in ceph_put_wrbuffer_cap_refs() argument
3284 if (ci->i_head_snapc == snapc) { in ceph_put_wrbuffer_cap_refs()
3301 if (iter->context == snapc) { in ceph_put_wrbuffer_cap_refs()