Home
last modified time | relevance | path

Searched refs:ordered (Results 1 – 14 of 14) sorted by relevance

/fs/btrfs/
Dordered-data.c420 struct btrfs_ordered_extent *ordered; in btrfs_get_logged_extents() local
427 ordered = rb_entry(n, struct btrfs_ordered_extent, rb_node); in btrfs_get_logged_extents()
429 if (list_empty(&ordered->log_list)) { in btrfs_get_logged_extents()
430 list_add_tail(&ordered->log_list, &log->logged_list[index]); in btrfs_get_logged_extents()
431 atomic_inc(&ordered->refs); in btrfs_get_logged_extents()
440 struct btrfs_ordered_extent *ordered; in btrfs_wait_logged_extents() local
445 ordered = list_first_entry(&log->logged_list[index], in btrfs_wait_logged_extents()
448 list_del_init(&ordered->log_list); in btrfs_wait_logged_extents()
450 wait_event(ordered->wait, test_bit(BTRFS_ORDERED_IO_DONE, in btrfs_wait_logged_extents()
451 &ordered->flags)); in btrfs_wait_logged_extents()
[all …]
Dfile-item.c421 struct btrfs_ordered_extent *ordered; in btrfs_csum_one_bio() local
445 ordered = btrfs_lookup_ordered_extent(inode, offset); in btrfs_csum_one_bio()
446 BUG_ON(!ordered); /* Logic error */ in btrfs_csum_one_bio()
447 sums->bytenr = ordered->start; in btrfs_csum_one_bio()
453 if (offset >= ordered->file_offset + ordered->len || in btrfs_csum_one_bio()
454 offset < ordered->file_offset) { in btrfs_csum_one_bio()
458 btrfs_add_ordered_sum(inode, ordered, sums); in btrfs_csum_one_bio()
459 btrfs_put_ordered_extent(ordered); in btrfs_csum_one_bio()
468 ordered = btrfs_lookup_ordered_extent(inode, offset); in btrfs_csum_one_bio()
469 BUG_ON(!ordered); /* Logic error */ in btrfs_csum_one_bio()
[all …]
Dfile.c1272 struct btrfs_ordered_extent *ordered; in prepare_pages() local
1275 ordered = btrfs_lookup_first_ordered_extent(inode, in prepare_pages()
1277 if (ordered && in prepare_pages()
1278 ordered->file_offset + ordered->len > start_pos && in prepare_pages()
1279 ordered->file_offset < last_pos) { in prepare_pages()
1280 btrfs_put_ordered_extent(ordered); in prepare_pages()
1292 if (ordered) in prepare_pages()
1293 btrfs_put_ordered_extent(ordered); in prepare_pages()
2004 struct btrfs_ordered_extent *ordered; in btrfs_punch_hole() local
2010 ordered = btrfs_lookup_first_ordered_extent(inode, lockend); in btrfs_punch_hole()
[all …]
Dinode.c1796 struct btrfs_ordered_extent *ordered; in btrfs_writepage_fixup_worker() local
1824 ordered = btrfs_lookup_ordered_extent(inode, page_start); in btrfs_writepage_fixup_worker()
1825 if (ordered) { in btrfs_writepage_fixup_worker()
1829 btrfs_start_ordered_extent(inode, ordered, 1); in btrfs_writepage_fixup_worker()
1830 btrfs_put_ordered_extent(ordered); in btrfs_writepage_fixup_worker()
2227 struct btrfs_ordered_extent *ordered; in relink_extent_backref() local
2291 ordered = btrfs_lookup_first_ordered_extent(inode, lock_end); in relink_extent_backref()
2292 if (ordered) { in relink_extent_backref()
2293 btrfs_put_ordered_extent(ordered); in relink_extent_backref()
2482 struct btrfs_ordered_extent *ordered) in record_old_file_extents() argument
[all …]
Dtree-log.c3274 struct btrfs_ordered_extent *ordered; in log_one_extent() local
3370 list_for_each_entry(ordered, &log->logged_list[index], log_list) { in log_one_extent()
3376 if (ordered->inode != inode) in log_one_extent()
3379 if (ordered->file_offset + ordered->len <= mod_start || in log_one_extent()
3380 mod_start + mod_len <= ordered->file_offset) in log_one_extent()
3388 if (ordered->file_offset > mod_start) { in log_one_extent()
3389 if (ordered->file_offset + ordered->len >= in log_one_extent()
3391 mod_len = ordered->file_offset - mod_start; in log_one_extent()
3403 if (ordered->file_offset + ordered->len < in log_one_extent()
3406 (ordered->file_offset + ordered->len); in log_one_extent()
[all …]
Dasync-thread.h76 int ordered; member
Dasync-thread.c177 if (!workers->ordered) in run_ordered_completions()
455 workers->ordered = 0; in btrfs_init_workers()
678 if (workers->ordered) { in btrfs_queue_worker()
DMakefile7 extent_map.o sysfs.o struct-funcs.o xattr.o ordered-data.o \
Dordered-data.h198 struct btrfs_ordered_extent *ordered);
Dioctl.c1004 struct btrfs_ordered_extent *ordered; in cluster_pages_for_defrag() local
1035 ordered = btrfs_lookup_ordered_extent(inode, in cluster_pages_for_defrag()
1038 if (!ordered) in cluster_pages_for_defrag()
1042 btrfs_start_ordered_extent(inode, ordered, 1); in cluster_pages_for_defrag()
1043 btrfs_put_ordered_extent(ordered); in cluster_pages_for_defrag()
2586 struct btrfs_ordered_extent *ordered; in btrfs_ioctl_clone() local
2588 ordered = btrfs_lookup_first_ordered_extent(src, off + len - 1); in btrfs_ioctl_clone()
2589 if (!ordered && in btrfs_ioctl_clone()
2594 if (ordered) in btrfs_ioctl_clone()
2595 btrfs_put_ordered_extent(ordered); in btrfs_ioctl_clone()
Drelocation.c4400 struct btrfs_ordered_extent *ordered; local
4407 ordered = btrfs_lookup_ordered_extent(inode, file_pos);
4408 BUG_ON(ordered->file_offset != file_pos || ordered->len != len);
4421 sums->bytenr = ordered->start;
4425 sector_sum->bytenr += ordered->start - disk_bytenr;
4430 btrfs_add_ordered_sum(inode, ordered, sums);
4433 btrfs_put_ordered_extent(ordered);
Ddisk-io.c2474 fs_info->workers.ordered = 1; in open_ctree()
2477 fs_info->delalloc_workers.ordered = 1; in open_ctree()
3678 struct btrfs_ordered_extent *ordered; in btrfs_destroy_ordered_extents() local
3685 list_for_each_entry(ordered, &root->fs_info->ordered_extents, in btrfs_destroy_ordered_extents()
3687 set_bit(BTRFS_ORDERED_IOERR, &ordered->flags); in btrfs_destroy_ordered_extents()
Dextent_io.c2726 struct btrfs_ordered_extent *ordered; in __extent_read_full_page() local
2747 ordered = btrfs_lookup_ordered_extent(inode, start); in __extent_read_full_page()
2748 if (!ordered) in __extent_read_full_page()
2751 btrfs_start_ordered_extent(inode, ordered, 1); in __extent_read_full_page()
2752 btrfs_put_ordered_extent(ordered); in __extent_read_full_page()
/fs/ext3/
DKconfig32 bool "Default to 'data=ordered' in ext3"
41 "data=ordered" mode can also result in major performance
48 data=ordered mode will be a safe choice and you should