Lines Matching full:oldest
575 * Get ref for the oldest snapc for an inode with dirty data... that is, the
681 struct ceph_snap_context *snapc, *oldest; in writepage_nounlock() local
705 oldest = get_oldest_context(inode, &ceph_wbc, snapc); in writepage_nounlock()
706 if (snapc->seq > oldest->seq) { in writepage_nounlock()
711 ceph_put_snap_context(oldest); in writepage_nounlock()
715 ceph_put_snap_context(oldest); in writepage_nounlock()
810 oldest = detach_page_private(page); in writepage_nounlock()
811 WARN_ON_ONCE(oldest != snapc); in writepage_nounlock()
1006 /* find oldest snap context with dirty data */ in ceph_writepages_start()
1014 doutc(cl, " oldest snapc is %p seq %lld (%d snaps)\n", snapc, in ceph_writepages_start()
1086 doutc(cl, "page snapc %p %lld != oldest %p %lld\n", in ceph_writepages_start()
1441 struct ceph_snap_context *oldest = get_oldest_context(inode, NULL, NULL); in context_is_writeable_or_written() local
1442 int ret = !oldest || snapc->seq <= oldest->seq; in context_is_writeable_or_written()
1444 ceph_put_snap_context(oldest); in context_is_writeable_or_written()
1473 struct ceph_snap_context *snapc, *oldest; in ceph_find_incompatible() local
1485 oldest = get_oldest_context(inode, NULL, NULL); in ceph_find_incompatible()
1486 if (snapc->seq > oldest->seq) { in ceph_find_incompatible()
1488 ceph_put_snap_context(oldest); in ceph_find_incompatible()
1489 doutc(cl, " %llx.%llx page %p snapc %p not current or oldest\n", in ceph_find_incompatible()
1493 ceph_put_snap_context(oldest); in ceph_find_incompatible()
1496 doutc(cl, " %llx.%llx page %p snapc %p not current, but oldest\n", in ceph_find_incompatible()