Home
last modified time | relevance | path

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

/fs/ceph/
Daddr.c74 struct ceph_snap_context *snapc; in ceph_set_page_dirty() local
92 snapc = ceph_get_snap_context(ci->i_snap_realm->cached_context); in ceph_set_page_dirty()
97 ci->i_head_snapc = ceph_get_snap_context(snapc); in ceph_set_page_dirty()
107 snapc, snapc->seq, snapc->num_snaps); in ceph_set_page_dirty()
122 page->private = (unsigned long)snapc; in ceph_set_page_dirty()
133 ceph_put_wrbuffer_cap_refs(ci, 1, snapc); in ceph_set_page_dirty()
150 struct ceph_snap_context *snapc = page_snap_context(page); in ceph_invalidatepage() local
173 ceph_put_wrbuffer_cap_refs(ci, 1, snapc); in ceph_invalidatepage()
174 ceph_put_snap_context(snapc); in ceph_invalidatepage()
403 struct ceph_snap_context *snapc = NULL; in get_oldest_context() local
[all …]
Dsnap.c297 struct ceph_snap_context *snapc; in build_snap_context() local
334 if (num > (ULONG_MAX - sizeof(*snapc)) / sizeof(u64)) in build_snap_context()
336 snapc = kzalloc(sizeof(*snapc) + num*sizeof(u64), GFP_NOFS); in build_snap_context()
337 if (!snapc) in build_snap_context()
339 atomic_set(&snapc->nref, 1); in build_snap_context()
343 snapc->seq = realm->seq; in build_snap_context()
350 snapc->snaps[num++] = in build_snap_context()
352 if (parent->cached_context->seq > snapc->seq) in build_snap_context()
353 snapc->seq = parent->cached_context->seq; in build_snap_context()
355 memcpy(snapc->snaps + num, realm->snaps, in build_snap_context()
[all …]
Dsuper.h770 struct ceph_snap_context *snapc);
Dcaps.c2222 struct ceph_snap_context *snapc) in ceph_put_wrbuffer_cap_refs() argument
2235 if (ci->i_head_snapc == snapc) { in ceph_put_wrbuffer_cap_refs()
2250 if (capsnap->context == snapc) { in ceph_put_wrbuffer_cap_refs()