Lines Matching full:ordered

972  * This function locks the extent and properly waits for data=ordered extents
998 struct btrfs_ordered_extent *ordered; in lock_and_cleanup_extent_if_need() local
1015 ordered = btrfs_lookup_ordered_range(inode, start_pos, in lock_and_cleanup_extent_if_need()
1017 if (ordered && in lock_and_cleanup_extent_if_need()
1018 ordered->file_offset + ordered->num_bytes > start_pos && in lock_and_cleanup_extent_if_need()
1019 ordered->file_offset <= last_pos) { in lock_and_cleanup_extent_if_need()
1026 btrfs_start_ordered_extent(ordered); in lock_and_cleanup_extent_if_need()
1027 btrfs_put_ordered_extent(ordered); in lock_and_cleanup_extent_if_need()
1030 if (ordered) in lock_and_cleanup_extent_if_need()
1031 btrfs_put_ordered_extent(ordered); in lock_and_cleanup_extent_if_need()
1055 * This function will flush ordered extents in the range to ensure proper
1531 * an ordered extent, and after that it will fault in the pages that the in btrfs_direct_write()
1534 * find that ordered extent and then wait for it to complete (at in btrfs_direct_write()
1536 * obviously the ordered extent can never complete as we didn't submit in btrfs_direct_write()
1763 * update the last_trans of the inode during ordered extent completion, in skip_inode_logging()
1779 * It needs to call filemap_fdatawait so that all ordered extent updates are
1806 * races between hole detection during logging and completion of ordered in btrfs_sync_file()
1807 * extents outside the range, to missing checksums due to ordered extents in btrfs_sync_file()
1844 * wait for all ordered extents to complete below. in btrfs_sync_file()
1867 * For a full fsync we wait for the ordered extents to complete while in btrfs_sync_file()
1869 * attach the ordered extents to the transaction so that a transaction in btrfs_sync_file()
1871 * the current transaction commits before the ordered extents complete in btrfs_sync_file()
1875 * logical address recorded in the ordered extent may change. We need in btrfs_sync_file()
1882 * Get our ordered extents as soon as possible to avoid doing in btrfs_sync_file()
1884 * checksums attached to the ordered extents. in btrfs_sync_file()
1905 * An ordered extent might have started before and completed in btrfs_sync_file()
1971 * the ordered extents, start it again and commit the transaction. If in btrfs_sync_file()
1972 * we attempt to wait on the ordered extents here we could deadlock with in btrfs_sync_file()
1988 * making sure the transaction that had the ordered extents is in btrfs_sync_file()
2218 * We can't have ordered extents in the range, nor dirty/writeback in btrfs_punch_hole_lock_range()
2222 * for any ordered extents in the range to complete. in btrfs_punch_hole_lock_range()
3106 * all ordered extents in the range to complete. After this we can lock in btrfs_fallocate()
3108 * can't be more delalloc or ordered extents in the range. in btrfs_fallocate()
3266 /* Else trim our search range for ordered extents. */ in find_delalloc_subrange()
3276 * Now also check if there's any ordered extent in the range. in find_delalloc_subrange()
3281 * an ordered extent for the write. So we might just have been called in find_delalloc_subrange()
3282 * after delalloc is flushed and before the ordered extent completes in find_delalloc_subrange()
3285 * 2) We may have an ordered extent created by flushing delalloc for a in find_delalloc_subrange()
3290 * being flushed, but using the ordered extents tree is more efficient in find_delalloc_subrange()
3291 * because it's usually much smaller as ordered extents are removed from in find_delalloc_subrange()
3300 /* The ordered extent may span beyond our search range. */ in find_delalloc_subrange()
3306 /* Don't have unflushed delalloc, return the ordered extent range. */ in find_delalloc_subrange()
3314 * We have both unflushed delalloc (io_tree) and an ordered extent. in find_delalloc_subrange()
3773 * our own ordered extent). This is because for direct IO reads, in btrfs_direct_read()
3859 * from there. We have to do this otherwise we'll miss the ordered in btrfs_fdatawrite_range()