aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tree-log.c
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@redhat.com>2013-01-31 13:21:12 -0500
committerJosef Bacik <jbacik@fusionio.com>2013-02-20 12:59:36 -0500
commitde78b51a2852bddccd6535e9e12de65f92787a1e (patch)
tree199124b0e3bf96a1edbcd184eba34e0d8bffbe24 /fs/btrfs/tree-log.c
parente4a2bcaca9643e7430207810653222fc5187f2be (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/tree-log.c')
-rw-r--r--fs/btrfs/tree-log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c
index deb7f66356bd..1a79087c4575 100644
--- a/fs/btrfs/tree-log.c
+++ b/fs/btrfs/tree-log.c
@@ -2738,7 +2738,7 @@ static noinline int log_dir_items(struct btrfs_trans_handle *trans,
2738 path->keep_locks = 1; 2738 path->keep_locks = 1;
2739 2739
2740 ret = btrfs_search_forward(root, &min_key, &max_key, 2740 ret = btrfs_search_forward(root, &min_key, &max_key,
2741 path, 0, trans->transid); 2741 path, trans->transid);
2742 2742
2743 /* 2743 /*
2744 * we didn't find anything from this transaction, see if there 2744 * we didn't find anything from this transaction, see if there
@@ -3680,7 +3680,7 @@ static int btrfs_log_inode(struct btrfs_trans_handle *trans,
3680 while (1) { 3680 while (1) {
3681 ins_nr = 0; 3681 ins_nr = 0;
3682 ret = btrfs_search_forward(root, &min_key, &max_key, 3682 ret = btrfs_search_forward(root, &min_key, &max_key,
3683 path, 0, trans->transid); 3683 path, trans->transid);
3684 if (ret != 0) 3684 if (ret != 0)
3685 break; 3685 break;
3686again: 3686again: