diff options
Diffstat (limited to 'fs/btrfs/transaction.c')
-rw-r--r-- | fs/btrfs/transaction.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index 5144ad19ef47..60481a53e004 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c | |||
@@ -959,10 +959,10 @@ static noinline int commit_fs_roots(struct btrfs_trans_handle *trans, | |||
959 | } | 959 | } |
960 | 960 | ||
961 | /* | 961 | /* |
962 | * defrag a given btree. If cacheonly == 1, this won't read from the disk, | 962 | * defrag a given btree. |
963 | * otherwise every leaf in the btree is read and defragged. | 963 | * Every leaf in the btree is read and defragged. |
964 | */ | 964 | */ |
965 | int btrfs_defrag_root(struct btrfs_root *root, int cacheonly) | 965 | int btrfs_defrag_root(struct btrfs_root *root) |
966 | { | 966 | { |
967 | struct btrfs_fs_info *info = root->fs_info; | 967 | struct btrfs_fs_info *info = root->fs_info; |
968 | struct btrfs_trans_handle *trans; | 968 | struct btrfs_trans_handle *trans; |
@@ -976,7 +976,7 @@ int btrfs_defrag_root(struct btrfs_root *root, int cacheonly) | |||
976 | if (IS_ERR(trans)) | 976 | if (IS_ERR(trans)) |
977 | return PTR_ERR(trans); | 977 | return PTR_ERR(trans); |
978 | 978 | ||
979 | ret = btrfs_defrag_leaves(trans, root, cacheonly); | 979 | ret = btrfs_defrag_leaves(trans, root); |
980 | 980 | ||
981 | btrfs_end_transaction(trans, root); | 981 | btrfs_end_transaction(trans, root); |
982 | btrfs_btree_balance_dirty(info->tree_root); | 982 | btrfs_btree_balance_dirty(info->tree_root); |