diff options
Diffstat (limited to 'fs/btrfs/ctree.c')
| -rw-r--r-- | fs/btrfs/ctree.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index fad8f23d70f0..b6cbeed226b1 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c | |||
| @@ -38,11 +38,6 @@ static int balance_node_right(struct btrfs_trans_handle *trans, | |||
| 38 | struct extent_buffer *src_buf); | 38 | struct extent_buffer *src_buf); |
| 39 | static int del_ptr(struct btrfs_trans_handle *trans, struct btrfs_root *root, | 39 | static int del_ptr(struct btrfs_trans_handle *trans, struct btrfs_root *root, |
| 40 | struct btrfs_path *path, int level, int slot); | 40 | struct btrfs_path *path, int level, int slot); |
| 41 | static int setup_items_for_insert(struct btrfs_trans_handle *trans, | ||
| 42 | struct btrfs_root *root, struct btrfs_path *path, | ||
| 43 | struct btrfs_key *cpu_key, u32 *data_size, | ||
| 44 | u32 total_data, u32 total_size, int nr); | ||
| 45 | |||
| 46 | 41 | ||
| 47 | struct btrfs_path *btrfs_alloc_path(void) | 42 | struct btrfs_path *btrfs_alloc_path(void) |
| 48 | { | 43 | { |
| @@ -74,8 +69,8 @@ noinline void btrfs_set_path_blocking(struct btrfs_path *p) | |||
| 74 | * retake all the spinlocks in the path. You can safely use NULL | 69 | * retake all the spinlocks in the path. You can safely use NULL |
| 75 | * for held | 70 | * for held |
| 76 | */ | 71 | */ |
| 77 | static noinline void btrfs_clear_path_blocking(struct btrfs_path *p, | 72 | noinline void btrfs_clear_path_blocking(struct btrfs_path *p, |
| 78 | struct extent_buffer *held) | 73 | struct extent_buffer *held) |
| 79 | { | 74 | { |
| 80 | int i; | 75 | int i; |
| 81 | 76 | ||
| @@ -3559,11 +3554,10 @@ out: | |||
| 3559 | * to save stack depth by doing the bulk of the work in a function | 3554 | * to save stack depth by doing the bulk of the work in a function |
| 3560 | * that doesn't call btrfs_search_slot | 3555 | * that doesn't call btrfs_search_slot |
| 3561 | */ | 3556 | */ |
| 3562 | static noinline_for_stack int | 3557 | int setup_items_for_insert(struct btrfs_trans_handle *trans, |
| 3563 | setup_items_for_insert(struct btrfs_trans_handle *trans, | 3558 | struct btrfs_root *root, struct btrfs_path *path, |
| 3564 | struct btrfs_root *root, struct btrfs_path *path, | 3559 | struct btrfs_key *cpu_key, u32 *data_size, |
| 3565 | struct btrfs_key *cpu_key, u32 *data_size, | 3560 | u32 total_data, u32 total_size, int nr) |
| 3566 | u32 total_data, u32 total_size, int nr) | ||
| 3567 | { | 3561 | { |
| 3568 | struct btrfs_item *item; | 3562 | struct btrfs_item *item; |
| 3569 | int i; | 3563 | int i; |
