Skip to content

Commit

Permalink
Btrfs: cleanup unused run_most
Browse files Browse the repository at this point in the history
"run_most" is not used anymore.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
  • Loading branch information
Liu Bo authored and Chris Mason committed Jan 22, 2015
1 parent 5701934 commit 26455d3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions fs/btrfs/extent-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -2769,7 +2769,6 @@ int btrfs_run_delayed_refs(struct btrfs_trans_handle *trans,
struct btrfs_delayed_ref_head *head;
int ret;
int run_all = count == (unsigned long)-1;
int run_most = 0;

/* We'll clean this up in btrfs_cleanup_transaction */
if (trans->aborted)
Expand All @@ -2779,10 +2778,8 @@ int btrfs_run_delayed_refs(struct btrfs_trans_handle *trans,
root = root->fs_info->tree_root;

delayed_refs = &trans->transaction->delayed_refs;
if (count == 0) {
if (count == 0)
count = atomic_read(&delayed_refs->num_entries) * 2;
run_most = 1;
}

again:
#ifdef SCRAMBLE_DELAYED_REFS
Expand Down

0 comments on commit 26455d3

Please sign in to comment.