diff options
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index f72b43819349..5b0c79d22c09 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -409,6 +409,12 @@ struct btrfs_path { | |||
409 | int keep_locks; | 409 | int keep_locks; |
410 | int skip_locking; | 410 | int skip_locking; |
411 | int lowest_level; | 411 | int lowest_level; |
412 | |||
413 | /* | ||
414 | * set by btrfs_split_item, tells search_slot to keep all locks | ||
415 | * and to force calls to keep space in the nodes | ||
416 | */ | ||
417 | int search_for_split; | ||
412 | }; | 418 | }; |
413 | 419 | ||
414 | /* | 420 | /* |
@@ -1816,6 +1822,11 @@ int btrfs_truncate_item(struct btrfs_trans_handle *trans, | |||
1816 | struct btrfs_root *root, | 1822 | struct btrfs_root *root, |
1817 | struct btrfs_path *path, | 1823 | struct btrfs_path *path, |
1818 | u32 new_size, int from_end); | 1824 | u32 new_size, int from_end); |
1825 | int btrfs_split_item(struct btrfs_trans_handle *trans, | ||
1826 | struct btrfs_root *root, | ||
1827 | struct btrfs_path *path, | ||
1828 | struct btrfs_key *new_key, | ||
1829 | unsigned long split_offset); | ||
1819 | int btrfs_search_slot(struct btrfs_trans_handle *trans, struct btrfs_root | 1830 | int btrfs_search_slot(struct btrfs_trans_handle *trans, struct btrfs_root |
1820 | *root, struct btrfs_key *key, struct btrfs_path *p, int | 1831 | *root, struct btrfs_key *key, struct btrfs_path *p, int |
1821 | ins_len, int cow); | 1832 | ins_len, int cow); |
@@ -1953,6 +1964,8 @@ int btrfs_lookup_inode(struct btrfs_trans_handle *trans, struct btrfs_root | |||
1953 | struct btrfs_key *location, int mod); | 1964 | struct btrfs_key *location, int mod); |
1954 | 1965 | ||
1955 | /* file-item.c */ | 1966 | /* file-item.c */ |
1967 | int btrfs_del_csums(struct btrfs_trans_handle *trans, | ||
1968 | struct btrfs_root *root, u64 bytenr, u64 len); | ||
1956 | int btrfs_lookup_bio_sums(struct btrfs_root *root, struct inode *inode, | 1969 | int btrfs_lookup_bio_sums(struct btrfs_root *root, struct inode *inode, |
1957 | struct bio *bio, u32 *dst); | 1970 | struct bio *bio, u32 *dst); |
1958 | int btrfs_insert_file_extent(struct btrfs_trans_handle *trans, | 1971 | int btrfs_insert_file_extent(struct btrfs_trans_handle *trans, |