ReactOS
0.4.15-dev-1627-gaf0f858
|
#include "btrfs_drv.h"
Go to the source code of this file.
Classes | |
struct | write_stripe |
struct | stripe |
struct | log_stripe |
_Dispatch_type_ | ( | IRP_MJ_WRITE | ) |
Definition at line 4617 of file write.c.
_Function_class_ | ( | IO_COMPLETION_ROUTINE | ) |
Definition at line 28 of file write.c.
_Releases_lock_ | ( | c-> | lock | ) |
|
pure virtual |
add_changed_extent_ref | ( | c | , |
address | , | ||
length | , | ||
fcb->subvol-> | id, | ||
fcb-> | inode, | ||
start_data | , | ||
1 | , | ||
fcb->inode_item.flags & | BTRFS_INODE_NODATASUM | ||
) |
void add_extent | ( | _In_ fcb * | fcb, |
_In_ LIST_ENTRY * | prevextle, | ||
_In_ __drv_aliasesMem extent * | newext | ||
) |
Definition at line 2367 of file write.c.
Referenced by do_write_file_prealloc(), duplicate_extents(), and excise_extents().
NTSTATUS add_extent_to_fcb | ( | _In_ fcb * | fcb, |
_In_ uint64_t | offset, | ||
_In_reads_bytes_(edsize) EXTENT_DATA * | ed, | ||
_In_ uint16_t | edsize, | ||
_In_ bool | unique, | ||
_In_opt_ _When_(return >=0, __drv_aliasesMem) void * | csum, | ||
_In_ LIST_ENTRY * | rollback | ||
) |
Definition at line 2736 of file write.c.
Referenced by duplicate_extents(), extend_file(), rename_stream_to_file(), truncate_file(), write_compressed(), write_file2(), and zero_data().
void add_insert_extent_rollback | ( | LIST_ENTRY * | rollback, |
fcb * | fcb, | ||
extent * | ext | ||
) |
Definition at line 2717 of file write.c.
Referenced by add_extent_to_fcb(), and do_write_file_prealloc().
|
static |
Definition at line 974 of file write.c.
Referenced by prepare_raid5_write(), and prepare_raid6_write().
NTSTATUS alloc_chunk | ( | device_extension * | Vcb, |
uint64_t | flags, | ||
chunk ** | pc, | ||
bool | full_size | ||
) |
Definition at line 361 of file write.c.
Referenced by _Function_class_(), balance_data_chunk(), get_tree_new_address(), insert_cache_extent(), insert_chunk_fragmented(), insert_extent(), insert_prealloc_extent(), try_consolidation(), write_compressed(), and write_metadata_items().
NTSTATUS do_write_file | ( | fcb * | fcb, |
uint64_t | start, | ||
uint64_t | end_data, | ||
void * | data, | ||
PIRP | Irp, | ||
bool | file_write, | ||
uint32_t | irp_offset, | ||
LIST_ENTRY * | rollback | ||
) |
Definition at line 3891 of file write.c.
Referenced by duplicate_extents(), extend_file(), rename_stream_to_file(), truncate_file(), update_chunk_cache(), write_file2(), and zero_data().
|
static |
Definition at line 3532 of file write.c.
Referenced by do_write_file().
NTSTATUS excise_extents | ( | device_extension * | Vcb, |
fcb * | fcb, | ||
uint64_t | start_data, | ||
uint64_t | end_data, | ||
PIRP | Irp, | ||
LIST_ENTRY * | rollback | ||
) |
Definition at line 2384 of file write.c.
Referenced by allocate_cache_chunk(), check_for_orphans_root(), delete_fileref_fcb(), do_write_file(), drop_chunk(), duplicate_extents(), extend_file(), load_stored_free_space_cache(), remove_free_space_inode(), rename_file_to_stream(), set_zero_data(), truncate_file(), write_compressed(), write_file2(), and zero_data().
ExFreePool | ( | ed | ) |
Referenced by _Requires_lock_held_(), add_partial_stripe(), alloc_chunk(), do_write_file_prealloc(), excise_extents(), extend_file(), FatDeferredFlush(), FFSFloppyFlush(), FFSv1WriteInode(), FFSWriteVolume(), free_write_data_stripes(), if(), prepare_raid0_write(), prepare_raid10_write(), prepare_raid5_write(), prepare_raid6_write(), RfsdFloppyFlush(), RfsdWriteInode(), RfsdWriteVolume(), truncate_file(), write_data(), and write_file2().
NTSTATUS extend_file | ( | fcb * | fcb, |
file_ref * | fileref, | ||
uint64_t | end, | ||
bool | prealloc, | ||
PIRP | Irp, | ||
LIST_ENTRY * | rollback | ||
) |
Definition at line 3299 of file write.c.
Referenced by file_create2(), open_file2(), set_end_of_file_information(), and write_file2().
|
static |
Definition at line 116 of file write.c.
Referenced by alloc_chunk().
|
static |
Definition at line 137 of file write.c.
Referenced by alloc_chunk().
|
static |
Definition at line 248 of file write.c.
Referenced by alloc_chunk().
void free_write_data_stripes | ( | write_data_context * | wtc | ) |
Definition at line 2307 of file write.c.
Referenced by do_tree_writes(), snapshot_tree_copy(), write_data(), and write_data_complete().
chunk* get_chunk_from_address | ( | device_extension * | Vcb, |
uint64_t | address | ||
) |
Definition at line 89 of file write.c.
Referenced by add_data_reloc(), add_metadata_reloc(), add_metadata_reloc_extent_item(), allocate_cache_chunk(), allocate_tree_extents(), do_rollback(), do_tree_writes(), do_write_file(), do_write_file_prealloc(), duplicate_extents(), excise_extents(), flush_fcb(), get_tree_new_address(), move_across_subvols(), rationalize_extents(), read_data(), read_file(), reduce_tree_extent(), snapshot_tree_copy(), try_extend_data(), update_tree_extents(), write_data(), and write_data_complete().
void get_raid56_lock_range | ( | chunk * | c, |
uint64_t | address, | ||
uint64_t | length, | ||
uint64_t * | lockaddr, | ||
uint64_t * | locklen | ||
) |
Definition at line 2166 of file write.c.
Referenced by read_data(), and write_data_complete().
if | ( | ! | find_data_address_in_chunkVcb, c, length, &address | ) |
Referenced by _Requires_lock_held_(), do_write_file(), do_write_file_prealloc(), excise_extents(), Ext2Write(), Ext2ZeroData(), FFSWrite(), find_new_dup_stripes(), find_new_stripe(), prepare_raid0_write(), prepare_raid10_write(), prepare_raid5_write(), prepare_raid6_write(), RfsdWrite(), RfsdWriteInode(), try_extend_data(), and write_data().
Definition at line 2834 of file write.c.
if | ( | data | ) |
Definition at line 2874 of file write.c.
|
static |
Definition at line 2976 of file write.c.
Referenced by insert_extent(), and insert_prealloc_extent().
|
static |
Definition at line 3105 of file write.c.