Lines Matching refs:BTRFS_I
236 BTRFS_I(inode)->location.type = BTRFS_INODE_ITEM_KEY;
237 BTRFS_I(inode)->location.objectid = BTRFS_FIRST_FREE_OBJECTID;
238 BTRFS_I(inode)->location.offset = 0;
263 BTRFS_I(inode)->root = root;
264 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, 0, sectorsize);
275 btrfs_drop_extent_cache(BTRFS_I(inode), 0, (u64)-1, 0);
284 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, 0, (u64)-1);
306 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset, sectorsize);
334 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset, sectorsize);
357 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset, sectorsize);
385 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset, sectorsize);
414 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset, sectorsize);
436 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset, sectorsize);
470 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset, sectorsize);
499 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset, sectorsize);
529 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset, sectorsize);
562 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset, sectorsize);
597 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset, sectorsize);
631 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset, sectorsize);
666 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset, sectorsize);
693 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset, sectorsize);
728 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset + 6, sectorsize);
755 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset, SZ_4M);
788 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset, sectorsize);
838 BTRFS_I(inode)->location.type = BTRFS_INODE_ITEM_KEY;
839 BTRFS_I(inode)->location.objectid = BTRFS_FIRST_FREE_OBJECTID;
840 BTRFS_I(inode)->location.offset = 0;
862 BTRFS_I(inode)->root = root;
872 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, 0, 2 * sectorsize);
894 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, sectorsize, 2 * sectorsize);
951 BTRFS_I(inode)->root = root;
954 ret = btrfs_set_extent_delalloc(BTRFS_I(inode), 0,
960 if (BTRFS_I(inode)->outstanding_extents != 1) {
963 BTRFS_I(inode)->outstanding_extents);
968 ret = btrfs_set_extent_delalloc(BTRFS_I(inode), BTRFS_MAX_EXTENT_SIZE,
975 if (BTRFS_I(inode)->outstanding_extents != 2) {
978 BTRFS_I(inode)->outstanding_extents);
983 ret = clear_extent_bit(&BTRFS_I(inode)->io_tree,
992 if (BTRFS_I(inode)->outstanding_extents != 2) {
995 BTRFS_I(inode)->outstanding_extents);
1000 ret = btrfs_set_extent_delalloc(BTRFS_I(inode), BTRFS_MAX_EXTENT_SIZE >> 1,
1008 if (BTRFS_I(inode)->outstanding_extents != 2) {
1011 BTRFS_I(inode)->outstanding_extents);
1018 ret = btrfs_set_extent_delalloc(BTRFS_I(inode),
1026 if (BTRFS_I(inode)->outstanding_extents != 4) {
1029 BTRFS_I(inode)->outstanding_extents);
1036 ret = btrfs_set_extent_delalloc(BTRFS_I(inode),
1043 if (BTRFS_I(inode)->outstanding_extents != 3) {
1046 BTRFS_I(inode)->outstanding_extents);
1051 ret = clear_extent_bit(&BTRFS_I(inode)->io_tree,
1060 if (BTRFS_I(inode)->outstanding_extents != 4) {
1063 BTRFS_I(inode)->outstanding_extents);
1071 ret = btrfs_set_extent_delalloc(BTRFS_I(inode),
1078 if (BTRFS_I(inode)->outstanding_extents != 3) {
1081 BTRFS_I(inode)->outstanding_extents);
1086 ret = clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, (u64)-1,
1093 if (BTRFS_I(inode)->outstanding_extents) {
1096 BTRFS_I(inode)->outstanding_extents);
1102 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, (u64)-1,