Lines Matching refs:BTRFS_I
258 BTRFS_I(inode)->root = root; in test_btrfs_get_extent()
259 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, 0, sectorsize); in test_btrfs_get_extent()
270 btrfs_drop_extent_map_range(BTRFS_I(inode), 0, (u64)-1, false); in test_btrfs_get_extent()
279 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, 0, (u64)-1); in test_btrfs_get_extent()
301 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset, sectorsize); in test_btrfs_get_extent()
329 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset, sectorsize); in test_btrfs_get_extent()
352 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset, sectorsize); in test_btrfs_get_extent()
380 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset, sectorsize); in test_btrfs_get_extent()
409 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset, sectorsize); in test_btrfs_get_extent()
431 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset, sectorsize); in test_btrfs_get_extent()
465 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset, sectorsize); in test_btrfs_get_extent()
494 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset, sectorsize); in test_btrfs_get_extent()
524 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset, sectorsize); in test_btrfs_get_extent()
557 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset, sectorsize); in test_btrfs_get_extent()
592 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset, sectorsize); in test_btrfs_get_extent()
626 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset, sectorsize); in test_btrfs_get_extent()
661 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset, sectorsize); in test_btrfs_get_extent()
688 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset, sectorsize); in test_btrfs_get_extent()
723 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset + 6, sectorsize); in test_btrfs_get_extent()
750 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset, SZ_4M); in test_btrfs_get_extent()
783 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset, sectorsize); in test_btrfs_get_extent()
853 BTRFS_I(inode)->root = root; in test_hole_first()
863 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, 0, 2 * sectorsize); in test_hole_first()
885 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, sectorsize, 2 * sectorsize); in test_hole_first()
942 BTRFS_I(inode)->root = root; in test_extent_accounting()
945 ret = btrfs_set_extent_delalloc(BTRFS_I(inode), 0, in test_extent_accounting()
951 if (BTRFS_I(inode)->outstanding_extents != 1) { in test_extent_accounting()
954 BTRFS_I(inode)->outstanding_extents); in test_extent_accounting()
959 ret = btrfs_set_extent_delalloc(BTRFS_I(inode), BTRFS_MAX_EXTENT_SIZE, in test_extent_accounting()
966 if (BTRFS_I(inode)->outstanding_extents != 2) { in test_extent_accounting()
969 BTRFS_I(inode)->outstanding_extents); in test_extent_accounting()
974 ret = clear_extent_bit(&BTRFS_I(inode)->io_tree, in test_extent_accounting()
983 if (BTRFS_I(inode)->outstanding_extents != 2) { in test_extent_accounting()
986 BTRFS_I(inode)->outstanding_extents); in test_extent_accounting()
991 ret = btrfs_set_extent_delalloc(BTRFS_I(inode), BTRFS_MAX_EXTENT_SIZE >> 1, in test_extent_accounting()
999 if (BTRFS_I(inode)->outstanding_extents != 2) { in test_extent_accounting()
1002 BTRFS_I(inode)->outstanding_extents); in test_extent_accounting()
1009 ret = btrfs_set_extent_delalloc(BTRFS_I(inode), in test_extent_accounting()
1017 if (BTRFS_I(inode)->outstanding_extents != 4) { in test_extent_accounting()
1020 BTRFS_I(inode)->outstanding_extents); in test_extent_accounting()
1027 ret = btrfs_set_extent_delalloc(BTRFS_I(inode), in test_extent_accounting()
1034 if (BTRFS_I(inode)->outstanding_extents != 3) { in test_extent_accounting()
1037 BTRFS_I(inode)->outstanding_extents); in test_extent_accounting()
1042 ret = clear_extent_bit(&BTRFS_I(inode)->io_tree, in test_extent_accounting()
1051 if (BTRFS_I(inode)->outstanding_extents != 4) { in test_extent_accounting()
1054 BTRFS_I(inode)->outstanding_extents); in test_extent_accounting()
1062 ret = btrfs_set_extent_delalloc(BTRFS_I(inode), in test_extent_accounting()
1069 if (BTRFS_I(inode)->outstanding_extents != 3) { in test_extent_accounting()
1072 BTRFS_I(inode)->outstanding_extents); in test_extent_accounting()
1077 ret = clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, (u64)-1, in test_extent_accounting()
1084 if (BTRFS_I(inode)->outstanding_extents) { in test_extent_accounting()
1087 BTRFS_I(inode)->outstanding_extents); in test_extent_accounting()
1093 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, (u64)-1, in test_extent_accounting()