Home
last modified time | relevance | path

Searched refs:io_tree (Results 1 – 12 of 12) sorted by relevance

/linux-2.6.39/fs/btrfs/
Ddisk-io.c283 static int verify_parent_transid(struct extent_io_tree *io_tree, in verify_parent_transid() argument
292 lock_extent_bits(io_tree, eb->start, eb->start + eb->len - 1, in verify_parent_transid()
294 if (extent_buffer_uptodate(io_tree, eb, cached_state) && in verify_parent_transid()
307 clear_extent_buffer_uptodate(io_tree, eb, &cached_state); in verify_parent_transid()
309 unlock_extent_cached(io_tree, eb->start, eb->start + eb->len - 1, in verify_parent_transid()
322 struct extent_io_tree *io_tree; in btree_read_extent_buffer_pages() local
328 io_tree = &BTRFS_I(root->fs_info->btree_inode)->io_tree; in btree_read_extent_buffer_pages()
330 ret = read_extent_buffer_pages(io_tree, eb, start, 1, in btree_read_extent_buffer_pages()
333 !verify_parent_transid(io_tree, eb, parent_transid)) in btree_read_extent_buffer_pages()
370 tree = &BTRFS_I(page->mapping->host)->io_tree; in csum_dirty_buffer()
[all …]
Dinode.c449 &BTRFS_I(inode)->io_tree, in compress_file_range()
567 struct extent_io_tree *io_tree; in submit_compressed_extents() local
579 io_tree = &BTRFS_I(inode)->io_tree; in submit_compressed_extents()
587 lock_extent(io_tree, async_extent->start, in submit_compressed_extents()
605 extent_write_locked_range(io_tree, in submit_compressed_extents()
616 lock_extent(io_tree, async_extent->start, in submit_compressed_extents()
638 unlock_extent(io_tree, async_extent->start, in submit_compressed_extents()
691 &BTRFS_I(inode)->io_tree, in submit_compressed_extents()
797 &BTRFS_I(inode)->io_tree, in cow_file_range()
879 extent_clear_unlock_delalloc(inode, &BTRFS_I(inode)->io_tree, in cow_file_range()
[all …]
Dcompression.c286 tree = &BTRFS_I(inode)->io_tree; in end_compressed_bio_write()
334 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_submit_compressed_write() local
373 ret = io_tree->ops->merge_bio_hook(page, 0, in btrfs_submit_compressed_write()
451 tree = &BTRFS_I(inode)->io_tree; in add_ra_bio_pages()
574 tree = &BTRFS_I(inode)->io_tree; in btrfs_submit_compressed_read()
Dbtrfs_inode.h40 struct extent_io_tree io_tree; member
Dioctl.c662 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in should_defrag_range() local
690 lock_extent(io_tree, start, start + len - 1, GFP_NOFS); in should_defrag_range()
692 unlock_extent(io_tree, start, start + len - 1, GFP_NOFS); in should_defrag_range()
734 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_defrag_file() local
836 lock_extent(io_tree, page_start, page_end, GFP_NOFS); in btrfs_defrag_file()
840 unlock_extent(io_tree, page_start, page_end, GFP_NOFS); in btrfs_defrag_file()
854 clear_extent_bits(&BTRFS_I(inode)->io_tree, page_start, in btrfs_defrag_file()
861 unlock_extent(io_tree, page_start, page_end, GFP_NOFS); in btrfs_defrag_file()
1915 lock_extent(&BTRFS_I(src)->io_tree, off, off+len, GFP_NOFS); in btrfs_ioctl_clone()
1918 !test_range_bit(&BTRFS_I(src)->io_tree, off, off+len, in btrfs_ioctl_clone()
[all …]
Dordered-data.c662 if (found || test_range_bit(&BTRFS_I(inode)->io_tree, start, orig_end, in btrfs_wait_ordered_range()
770 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_ordered_update_i_size() local
807 if (test_range_bit(io_tree, disk_i_size, offset - 1, in btrfs_ordered_update_i_size()
877 !test_range_bit(io_tree, offset, i_size_test - 1, in btrfs_ordered_update_i_size()
Dfile.c848 lock_extent_bits(&BTRFS_I(inode)->io_tree, in prepare_pages()
857 unlock_extent_cached(&BTRFS_I(inode)->io_tree, in prepare_pages()
871 clear_extent_bit(&BTRFS_I(inode)->io_tree, start_pos, in prepare_pages()
875 unlock_extent_cached(&BTRFS_I(inode)->io_tree, in prepare_pages()
1350 lock_extent_bits(&BTRFS_I(inode)->io_tree, alloc_start, in btrfs_fallocate()
1358 unlock_extent_cached(&BTRFS_I(inode)->io_tree, in btrfs_fallocate()
1402 unlock_extent_cached(&BTRFS_I(inode)->io_tree, alloc_start, locked_end, in btrfs_fallocate()
Dfile-item.c170 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in __btrfs_lookup_bio_sums() local
206 set_extent_bits(io_tree, offset, in __btrfs_lookup_bio_sums()
246 set_state_private(io_tree, offset, sum); in __btrfs_lookup_bio_sums()
Drelocation.c1572 ret = try_lock_extent(&BTRFS_I(inode)->io_tree,
1580 unlock_extent(&BTRFS_I(inode)->io_tree,
1948 lock_extent(&BTRFS_I(inode)->io_tree, start, end, GFP_NOFS);
1950 unlock_extent(&BTRFS_I(inode)->io_tree, start, end, GFP_NOFS);
2847 lock_extent(&BTRFS_I(inode)->io_tree, start, end, GFP_NOFS);
2852 unlock_extent(&BTRFS_I(inode)->io_tree, start, end, GFP_NOFS);
2884 lock_extent(&BTRFS_I(inode)->io_tree, start, end, GFP_NOFS);
2895 unlock_extent(&BTRFS_I(inode)->io_tree, start, end, GFP_NOFS);
2973 lock_extent(&BTRFS_I(inode)->io_tree,
2980 set_extent_bits(&BTRFS_I(inode)->io_tree,
[all …]
Dfree-space-cache.c617 lock_extent_bits(&BTRFS_I(inode)->io_tree, 0, i_size_read(inode) - 1, in btrfs_write_out_cache()
752 unlock_extent_cached(&BTRFS_I(inode)->io_tree, 0, in btrfs_write_out_cache()
788 unlock_extent_cached(&BTRFS_I(inode)->io_tree, 0, in btrfs_write_out_cache()
807 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, bytes - 1, in btrfs_write_out_cache()
821 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, bytes - 1, in btrfs_write_out_cache()
Dextent-tree.c6603 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree;
6654 lock_extent(io_tree, page_start, page_end, GFP_NOFS);
6658 unlock_extent(io_tree, page_start, page_end, GFP_NOFS);
6668 set_extent_bits(io_tree, page_start, page_end,
6675 unlock_extent(io_tree, page_start, page_end, GFP_NOFS);
6708 lock_extent(&BTRFS_I(reloc_inode)->io_tree, start, end, GFP_NOFS);
6720 unlock_extent(&BTRFS_I(reloc_inode)->io_tree, start, end, GFP_NOFS);
7152 unlock_extent(&BTRFS_I(inode)->io_tree, lock_start,
7221 unlock_extent(&BTRFS_I(inode)->io_tree,
7261 lock_extent(&BTRFS_I(inode)->io_tree, lock_start,
[all …]
Dextent_io.c1674 tree = &BTRFS_I(page->mapping->host)->io_tree; in end_bio_extent_writepage()
1749 tree = &BTRFS_I(page->mapping->host)->io_tree; in end_bio_extent_readpage()
1838 tree = &BTRFS_I(page->mapping->host)->io_tree; in end_bio_extent_preparewrite()
2940 lock_extent_bits(&BTRFS_I(inode)->io_tree, start, start + blksize - 1, in extent_bmap()
2943 unlock_extent_cached(&BTRFS_I(inode)->io_tree, start, in extent_bmap()
3072 lock_extent_bits(&BTRFS_I(inode)->io_tree, start, start + len, 0, in extent_fiemap()
3159 unlock_extent_cached(&BTRFS_I(inode)->io_tree, start, start + len, in extent_fiemap()