Lines Matching refs:oldest
604 struct ceph_snap_context *snapc, *oldest; in writepage_nounlock() local
620 oldest = get_oldest_context(inode, &ceph_wbc, snapc); in writepage_nounlock()
621 if (snapc->seq > oldest->seq) { in writepage_nounlock()
626 ceph_put_snap_context(oldest); in writepage_nounlock()
630 ceph_put_snap_context(oldest); in writepage_nounlock()
1242 struct ceph_snap_context *oldest = get_oldest_context(inode, NULL, NULL); in context_is_writeable_or_written() local
1243 int ret = !oldest || snapc->seq <= oldest->seq; in context_is_writeable_or_written()
1245 ceph_put_snap_context(oldest); in context_is_writeable_or_written()
1273 struct ceph_snap_context *snapc, *oldest; in ceph_find_incompatible() local
1285 oldest = get_oldest_context(inode, NULL, NULL); in ceph_find_incompatible()
1286 if (snapc->seq > oldest->seq) { in ceph_find_incompatible()
1288 ceph_put_snap_context(oldest); in ceph_find_incompatible()
1292 ceph_put_snap_context(oldest); in ceph_find_incompatible()