diff options
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 6c65473e0fe3..098cf0883150 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -1038,8 +1038,16 @@ void btrfs_release_path(struct btrfs_root *root, struct btrfs_path *p); | |||
1038 | struct btrfs_path *btrfs_alloc_path(void); | 1038 | struct btrfs_path *btrfs_alloc_path(void); |
1039 | void btrfs_free_path(struct btrfs_path *p); | 1039 | void btrfs_free_path(struct btrfs_path *p); |
1040 | void btrfs_init_path(struct btrfs_path *p); | 1040 | void btrfs_init_path(struct btrfs_path *p); |
1041 | int btrfs_del_item(struct btrfs_trans_handle *trans, struct btrfs_root *root, | 1041 | int btrfs_del_items(struct btrfs_trans_handle *trans, struct btrfs_root *root, |
1042 | struct btrfs_path *path); | 1042 | struct btrfs_path *path, int slot, int nr); |
1043 | |||
1044 | static inline int btrfs_del_item(struct btrfs_trans_handle *trans, | ||
1045 | struct btrfs_root *root, | ||
1046 | struct btrfs_path *path) | ||
1047 | { | ||
1048 | return btrfs_del_items(trans, root, path, path->slots[0], 1); | ||
1049 | } | ||
1050 | |||
1043 | int btrfs_insert_item(struct btrfs_trans_handle *trans, struct btrfs_root | 1051 | int btrfs_insert_item(struct btrfs_trans_handle *trans, struct btrfs_root |
1044 | *root, struct btrfs_key *key, void *data, u32 data_size); | 1052 | *root, struct btrfs_key *key, void *data, u32 data_size); |
1045 | int btrfs_insert_empty_item(struct btrfs_trans_handle *trans, struct btrfs_root | 1053 | int btrfs_insert_empty_item(struct btrfs_trans_handle *trans, struct btrfs_root |