• Home
  • Raw
  • Download

Lines Matching refs:snapc

76 	struct ceph_snap_context *snapc;  in ceph_set_page_dirty()  local
100 snapc = ceph_get_snap_context(capsnap->context); in ceph_set_page_dirty()
104 snapc = ceph_get_snap_context(ci->i_head_snapc); in ceph_set_page_dirty()
115 snapc, snapc->seq, snapc->num_snaps); in ceph_set_page_dirty()
123 page->private = (unsigned long)snapc; in ceph_set_page_dirty()
143 struct ceph_snap_context *snapc = page_snap_context(page); in ceph_invalidatepage() local
165 ceph_put_wrbuffer_cap_refs(ci, 1, snapc); in ceph_invalidatepage()
166 ceph_put_snap_context(snapc); in ceph_invalidatepage()
485 struct ceph_snap_context *snapc = NULL; in get_oldest_context() local
496 if (snapc && capsnap->context != page_snapc) in get_oldest_context()
512 if (snapc) in get_oldest_context()
515 snapc = ceph_get_snap_context(capsnap->context); in get_oldest_context()
517 page_snapc == snapc || in get_oldest_context()
518 page_snapc->seq > snapc->seq) in get_oldest_context()
521 if (!snapc && ci->i_wrbuffer_ref_head) { in get_oldest_context()
522 snapc = ceph_get_snap_context(ci->i_head_snapc); in get_oldest_context()
524 snapc, ci->i_wrbuffer_ref_head); in get_oldest_context()
534 return snapc; in get_oldest_context()
541 struct ceph_snap_context *snapc = page_snap_context(page); in get_writepages_data_length() local
545 if (snapc != ci->i_head_snapc) { in get_writepages_data_length()
549 if (capsnap->context == snapc) { in get_writepages_data_length()
575 struct ceph_snap_context *snapc, *oldest; in writepage_nounlock() local
588 snapc = page_snap_context(page); in writepage_nounlock()
589 if (!snapc) { in writepage_nounlock()
593 oldest = get_oldest_context(inode, &ceph_wbc, snapc); in writepage_nounlock()
594 if (snapc->seq > oldest->seq) { in writepage_nounlock()
596 inode, page, snapc); in writepage_nounlock()
616 inode, page, page->index, page_off, len, snapc, snapc->seq); in writepage_nounlock()
625 &ci->i_layout, snapc, page_off, len, in writepage_nounlock()
652 ceph_put_wrbuffer_cap_refs(ci, 1, snapc); in writepage_nounlock()
653 ceph_put_snap_context(snapc); /* page's reference */ in writepage_nounlock()
706 struct ceph_snap_context *snapc = req->r_snapc; in writepages_finish() local
767 ceph_put_wrbuffer_cap_refs(ci, total_pages, snapc); in writepages_finish()
789 struct ceph_snap_context *snapc = NULL, *last_snapc = NULL, *pgsnapc; in ceph_writepages_start() local
821 snapc = get_oldest_context(inode, &ceph_wbc, NULL); in ceph_writepages_start()
822 if (!snapc) { in ceph_writepages_start()
829 snapc, snapc->seq, snapc->num_snaps); in ceph_writepages_start()
832 if (ceph_wbc.head_snapc && snapc != last_snapc) { in ceph_writepages_start()
858 last_snapc = snapc; in ceph_writepages_start()
919 if (pgsnapc != snapc) { in ceph_writepages_start()
921 pgsnapc, pgsnapc->seq, snapc, snapc->seq); in ceph_writepages_start()
1033 snapc, ceph_wbc.truncate_seq, in ceph_writepages_start()
1043 snapc, ceph_wbc.truncate_seq, in ceph_writepages_start()
1168 if (page_snap_context(page) != snapc) in ceph_writepages_start()
1198 struct ceph_snap_context *snapc) in context_is_writeable_or_written() argument
1201 int ret = !oldest || snapc->seq <= oldest->seq; in context_is_writeable_or_written()
1227 struct ceph_snap_context *snapc, *oldest; in ceph_update_writeable_page() local
1239 snapc = page_snap_context(page); in ceph_update_writeable_page()
1240 if (snapc && snapc != ci->i_head_snapc) { in ceph_update_writeable_page()
1246 if (snapc->seq > oldest->seq) { in ceph_update_writeable_page()
1249 page, snapc); in ceph_update_writeable_page()
1254 snapc = ceph_get_snap_context(snapc); in ceph_update_writeable_page()
1258 context_is_writeable_or_written(inode, snapc)); in ceph_update_writeable_page()
1259 ceph_put_snap_context(snapc); in ceph_update_writeable_page()
1268 page, snapc); in ceph_update_writeable_page()