Lines Matching refs:oldest
666 struct ceph_snap_context *snapc, *oldest; in writepage_nounlock() local
688 oldest = get_oldest_context(inode, &ceph_wbc, snapc); in writepage_nounlock()
689 if (snapc->seq > oldest->seq) { in writepage_nounlock()
694 ceph_put_snap_context(oldest); in writepage_nounlock()
698 ceph_put_snap_context(oldest); in writepage_nounlock()
789 oldest = detach_page_private(page); in writepage_nounlock()
790 WARN_ON_ONCE(oldest != snapc); in writepage_nounlock()
1411 struct ceph_snap_context *oldest = get_oldest_context(inode, NULL, NULL); in context_is_writeable_or_written() local
1412 int ret = !oldest || snapc->seq <= oldest->seq; in context_is_writeable_or_written()
1414 ceph_put_snap_context(oldest); in context_is_writeable_or_written()
1442 struct ceph_snap_context *snapc, *oldest; in ceph_find_incompatible() local
1454 oldest = get_oldest_context(inode, NULL, NULL); in ceph_find_incompatible()
1455 if (snapc->seq > oldest->seq) { in ceph_find_incompatible()
1457 ceph_put_snap_context(oldest); in ceph_find_incompatible()
1461 ceph_put_snap_context(oldest); in ceph_find_incompatible()