diff options
author | Eric Sandeen <sandeen@redhat.com> | 2013-01-31 13:21:12 -0500 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2013-02-20 12:59:36 -0500 |
commit | de78b51a2852bddccd6535e9e12de65f92787a1e (patch) | |
tree | 199124b0e3bf96a1edbcd184eba34e0d8bffbe24 /fs/btrfs/transaction.c | |
parent | e4a2bcaca9643e7430207810653222fc5187f2be (diff) |
btrfs: remove cache only arguments from defrag path
The entry point at the defrag ioctl always sets "cache only" to 0;
the codepaths haven't run for a long time as far as I can
tell. Chris says they're dead code, so remove them.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
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); |