diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-04-17 13:26:50 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-04-17 13:26:50 -0400 |
commit | b18c6685810af8e6763760711aece31ccc7a8ea8 (patch) | |
tree | db7220ed6fb418fbdc069ac422fc8b1c1598e92f /fs/btrfs/ctree.h | |
parent | 6567e837df07e43bffc08ac40858af8133a007bf (diff) |
Btrfs: progress on file_write
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 796f19d03ab5..ca3ab160f460 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -999,7 +999,7 @@ static inline void btrfs_mark_buffer_dirty(struct buffer_head *bh) | |||
999 | ((type *)(btrfs_leaf_data(leaf) + \ | 999 | ((type *)(btrfs_leaf_data(leaf) + \ |
1000 | btrfs_item_offset((leaf)->items + (slot)))) | 1000 | btrfs_item_offset((leaf)->items + (slot)))) |
1001 | 1001 | ||
1002 | /* extent-item.c */ | 1002 | /* extent-tree.c */ |
1003 | int btrfs_inc_root_ref(struct btrfs_trans_handle *trans, | 1003 | int btrfs_inc_root_ref(struct btrfs_trans_handle *trans, |
1004 | struct btrfs_root *root); | 1004 | struct btrfs_root *root); |
1005 | struct buffer_head *btrfs_alloc_free_block(struct btrfs_trans_handle *trans, | 1005 | struct buffer_head *btrfs_alloc_free_block(struct btrfs_trans_handle *trans, |
@@ -1013,9 +1013,16 @@ int btrfs_free_extent(struct btrfs_trans_handle *trans, struct btrfs_root | |||
1013 | *root, u64 blocknr, u64 num_blocks, int pin); | 1013 | *root, u64 blocknr, u64 num_blocks, int pin); |
1014 | int btrfs_finish_extent_commit(struct btrfs_trans_handle *trans, struct | 1014 | int btrfs_finish_extent_commit(struct btrfs_trans_handle *trans, struct |
1015 | btrfs_root *root); | 1015 | btrfs_root *root); |
1016 | int btrfs_inc_extent_ref(struct btrfs_trans_handle *trans, | ||
1017 | struct btrfs_root *root, | ||
1018 | u64 blocknr, u64 num_blocks); | ||
1016 | /* ctree.c */ | 1019 | /* ctree.c */ |
1017 | int btrfs_extend_item(struct btrfs_trans_handle *trans, struct btrfs_root | 1020 | int btrfs_extend_item(struct btrfs_trans_handle *trans, struct btrfs_root |
1018 | *root, struct btrfs_path *path, u32 data_size); | 1021 | *root, struct btrfs_path *path, u32 data_size); |
1022 | int btrfs_truncate_item(struct btrfs_trans_handle *trans, | ||
1023 | struct btrfs_root *root, | ||
1024 | struct btrfs_path *path, | ||
1025 | u32 new_size); | ||
1019 | int btrfs_search_slot(struct btrfs_trans_handle *trans, struct btrfs_root | 1026 | int btrfs_search_slot(struct btrfs_trans_handle *trans, struct btrfs_root |
1020 | *root, struct btrfs_key *key, struct btrfs_path *p, int | 1027 | *root, struct btrfs_key *key, struct btrfs_path *p, int |
1021 | ins_len, int cow); | 1028 | ins_len, int cow); |
@@ -1073,11 +1080,10 @@ int btrfs_lookup_inode(struct btrfs_trans_handle *trans, struct btrfs_root | |||
1073 | struct btrfs_key *location, int mod); | 1080 | struct btrfs_key *location, int mod); |
1074 | 1081 | ||
1075 | /* file-item.c */ | 1082 | /* file-item.c */ |
1076 | int btrfs_alloc_file_extent(struct btrfs_trans_handle *trans, | 1083 | int btrfs_insert_file_extent(struct btrfs_trans_handle *trans, |
1077 | struct btrfs_root *root, | 1084 | struct btrfs_root *root, |
1078 | u64 objectid, u64 offset, | 1085 | u64 objectid, u64 pos, u64 offset, |
1079 | u64 num_blocks, u64 hint_block, | 1086 | u64 num_blocks); |
1080 | u64 *result); | ||
1081 | int btrfs_lookup_file_extent(struct btrfs_trans_handle *trans, | 1087 | int btrfs_lookup_file_extent(struct btrfs_trans_handle *trans, |
1082 | struct btrfs_root *root, | 1088 | struct btrfs_root *root, |
1083 | struct btrfs_path *path, u64 objectid, | 1089 | struct btrfs_path *path, u64 objectid, |
@@ -1090,6 +1096,11 @@ int btrfs_csum_file_block(struct btrfs_trans_handle *trans, | |||
1090 | int btrfs_csum_verify_file_block(struct btrfs_root *root, | 1096 | int btrfs_csum_verify_file_block(struct btrfs_root *root, |
1091 | u64 objectid, u64 offset, | 1097 | u64 objectid, u64 offset, |
1092 | char *data, size_t len); | 1098 | char *data, size_t len); |
1099 | struct btrfs_csum_item *btrfs_lookup_csum(struct btrfs_trans_handle *trans, | ||
1100 | struct btrfs_root *root, | ||
1101 | struct btrfs_path *path, | ||
1102 | u64 objectid, u64 offset, | ||
1103 | int cow); | ||
1093 | /* super.c */ | 1104 | /* super.c */ |
1094 | extern struct subsystem btrfs_subsys; | 1105 | extern struct subsystem btrfs_subsys; |
1095 | 1106 | ||