ordered_extent 82 fs/btrfs/inode.c static int btrfs_finish_ordered_io(struct btrfs_ordered_extent *ordered_extent); ordered_extent 3107 fs/btrfs/inode.c static int btrfs_finish_ordered_io(struct btrfs_ordered_extent *ordered_extent) ordered_extent 3109 fs/btrfs/inode.c struct inode *inode = ordered_extent->inode; ordered_extent 3118 fs/btrfs/inode.c u64 logical_len = ordered_extent->len; ordered_extent 3125 fs/btrfs/inode.c if (!test_bit(BTRFS_ORDERED_NOCOW, &ordered_extent->flags) && ordered_extent 3126 fs/btrfs/inode.c !test_bit(BTRFS_ORDERED_PREALLOC, &ordered_extent->flags) && ordered_extent 3127 fs/btrfs/inode.c !test_bit(BTRFS_ORDERED_DIRECT, &ordered_extent->flags)) ordered_extent 3132 fs/btrfs/inode.c if (test_bit(BTRFS_ORDERED_IOERR, &ordered_extent->flags)) { ordered_extent 3138 fs/btrfs/inode.c ordered_extent->file_offset, ordered_extent 3139 fs/btrfs/inode.c ordered_extent->file_offset + ordered_extent 3140 fs/btrfs/inode.c ordered_extent->len - 1); ordered_extent 3142 fs/btrfs/inode.c if (test_bit(BTRFS_ORDERED_TRUNCATED, &ordered_extent->flags)) { ordered_extent 3144 fs/btrfs/inode.c logical_len = ordered_extent->truncated_len; ordered_extent 3150 fs/btrfs/inode.c if (test_bit(BTRFS_ORDERED_NOCOW, &ordered_extent->flags)) { ordered_extent 3151 fs/btrfs/inode.c BUG_ON(!list_empty(&ordered_extent->list)); /* Logic error */ ordered_extent 3158 fs/btrfs/inode.c btrfs_qgroup_free_data(inode, NULL, ordered_extent->file_offset, ordered_extent 3159 fs/btrfs/inode.c ordered_extent->len); ordered_extent 3160 fs/btrfs/inode.c btrfs_ordered_update_i_size(inode, 0, ordered_extent); ordered_extent 3178 fs/btrfs/inode.c lock_extent_bits(io_tree, ordered_extent->file_offset, ordered_extent 3179 fs/btrfs/inode.c ordered_extent->file_offset + ordered_extent->len - 1, ordered_extent 3182 fs/btrfs/inode.c ret = test_range_bit(io_tree, ordered_extent->file_offset, ordered_extent 3183 fs/btrfs/inode.c ordered_extent->file_offset + ordered_extent->len - 1, ordered_extent 3189 fs/btrfs/inode.c new = record_old_file_extents(inode, ordered_extent); ordered_extent 3191 fs/btrfs/inode.c clear_extent_bit(io_tree, ordered_extent->file_offset, ordered_extent 3192 fs/btrfs/inode.c ordered_extent->file_offset + ordered_extent->len - 1, ordered_extent 3208 fs/btrfs/inode.c if (test_bit(BTRFS_ORDERED_COMPRESSED, &ordered_extent->flags)) ordered_extent 3209 fs/btrfs/inode.c compress_type = ordered_extent->compress_type; ordered_extent 3210 fs/btrfs/inode.c if (test_bit(BTRFS_ORDERED_PREALLOC, &ordered_extent->flags)) { ordered_extent 3212 fs/btrfs/inode.c btrfs_qgroup_free_data(inode, NULL, ordered_extent->file_offset, ordered_extent 3213 fs/btrfs/inode.c ordered_extent->len); ordered_extent 3215 fs/btrfs/inode.c ordered_extent->file_offset, ordered_extent 3216 fs/btrfs/inode.c ordered_extent->file_offset + ordered_extent 3221 fs/btrfs/inode.c ordered_extent->file_offset, ordered_extent 3222 fs/btrfs/inode.c ordered_extent->start, ordered_extent 3223 fs/btrfs/inode.c ordered_extent->disk_len, ordered_extent 3230 fs/btrfs/inode.c ordered_extent->start, ordered_extent 3231 fs/btrfs/inode.c ordered_extent->disk_len); ordered_extent 3235 fs/btrfs/inode.c ordered_extent->file_offset, ordered_extent->len, ordered_extent 3242 fs/btrfs/inode.c ret = add_pending_csums(trans, inode, &ordered_extent->list); ordered_extent 3248 fs/btrfs/inode.c btrfs_ordered_update_i_size(inode, 0, ordered_extent); ordered_extent 3264 fs/btrfs/inode.c ordered_extent->file_offset, ordered_extent 3265 fs/btrfs/inode.c ordered_extent->file_offset + ordered_extent 3266 fs/btrfs/inode.c ordered_extent->len - 1, ordered_extent 3279 fs/btrfs/inode.c start = ordered_extent->file_offset + logical_len; ordered_extent 3281 fs/btrfs/inode.c start = ordered_extent->file_offset; ordered_extent 3282 fs/btrfs/inode.c end = ordered_extent->file_offset + ordered_extent->len - 1; ordered_extent 3300 fs/btrfs/inode.c !test_bit(BTRFS_ORDERED_NOCOW, &ordered_extent->flags) && ordered_extent 3301 fs/btrfs/inode.c !test_bit(BTRFS_ORDERED_PREALLOC, &ordered_extent->flags)) ordered_extent 3303 fs/btrfs/inode.c ordered_extent->start, ordered_extent 3304 fs/btrfs/inode.c ordered_extent->disk_len, 1); ordered_extent 3312 fs/btrfs/inode.c btrfs_remove_ordered_extent(inode, ordered_extent); ordered_extent 3325 fs/btrfs/inode.c btrfs_put_ordered_extent(ordered_extent); ordered_extent 3327 fs/btrfs/inode.c btrfs_put_ordered_extent(ordered_extent); ordered_extent 3334 fs/btrfs/inode.c struct btrfs_ordered_extent *ordered_extent; ordered_extent 3335 fs/btrfs/inode.c ordered_extent = container_of(work, struct btrfs_ordered_extent, work); ordered_extent 3336 fs/btrfs/inode.c btrfs_finish_ordered_io(ordered_extent); ordered_extent 3344 fs/btrfs/inode.c struct btrfs_ordered_extent *ordered_extent = NULL; ordered_extent 3350 fs/btrfs/inode.c if (!btrfs_dec_test_ordered_pending(inode, &ordered_extent, start, ordered_extent 3359 fs/btrfs/inode.c btrfs_init_work(&ordered_extent->work, finish_ordered_fn, NULL, NULL); ordered_extent 3360 fs/btrfs/inode.c btrfs_queue_work(wq, &ordered_extent->work);