Lines Matching full:oldest

618  * Get ref for the oldest snapc for an inode with dirty data... that is, the
725 struct ceph_snap_context *snapc, *oldest; in write_folio_nounlock() local
749 oldest = get_oldest_context(inode, &ceph_wbc, snapc); in write_folio_nounlock()
750 if (snapc->seq > oldest->seq) { in write_folio_nounlock()
755 ceph_put_snap_context(oldest); in write_folio_nounlock()
759 ceph_put_snap_context(oldest); in write_folio_nounlock()
854 oldest = folio_detach_private(folio); in write_folio_nounlock()
855 WARN_ON_ONCE(oldest != snapc); in write_folio_nounlock()
1075 /* find oldest snap context with dirty data */ in ceph_define_writeback_range()
1084 doutc(cl, " oldest snapc is %p seq %lld (%d snaps)\n", in ceph_define_writeback_range()
1156 doutc(cl, "folio snapc %p %lld != oldest %p %lld\n", in ceph_check_page_before_write()
1772 struct ceph_snap_context *oldest = get_oldest_context(inode, NULL, NULL); in context_is_writeable_or_written() local
1773 int ret = !oldest || snapc->seq <= oldest->seq; in context_is_writeable_or_written()
1775 ceph_put_snap_context(oldest); in context_is_writeable_or_written()
1804 struct ceph_snap_context *snapc, *oldest; in ceph_find_incompatible() local
1816 oldest = get_oldest_context(inode, NULL, NULL); in ceph_find_incompatible()
1817 if (snapc->seq > oldest->seq) { in ceph_find_incompatible()
1819 ceph_put_snap_context(oldest); in ceph_find_incompatible()
1820 doutc(cl, " %llx.%llx folio %p snapc %p not current or oldest\n", in ceph_find_incompatible()
1824 ceph_put_snap_context(oldest); in ceph_find_incompatible()
1827 doutc(cl, " %llx.%llx folio %p snapc %p not current, but oldest\n", in ceph_find_incompatible()