diff options
author | Liu Bo <bo.li.liu@oracle.com> | 2014-12-17 03:14:09 -0500 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2015-01-21 21:22:16 -0500 |
commit | 26455d3318a1e2a38f783db07981e3ed67de40ed (patch) | |
tree | fba520eb02d20594901ccc38c5ae11f0346d0852 /fs | |
parent | 570193454a5841a9fa477ce1bcc6c30ca6fcf552 (diff) |
Btrfs: cleanup unused run_most
"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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/extent-tree.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 1d361ac9abc9..53294da0749d 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c | |||
@@ -2769,7 +2769,6 @@ int btrfs_run_delayed_refs(struct btrfs_trans_handle *trans, | |||
2769 | struct btrfs_delayed_ref_head *head; | 2769 | struct btrfs_delayed_ref_head *head; |
2770 | int ret; | 2770 | int ret; |
2771 | int run_all = count == (unsigned long)-1; | 2771 | int run_all = count == (unsigned long)-1; |
2772 | int run_most = 0; | ||
2773 | 2772 | ||
2774 | /* We'll clean this up in btrfs_cleanup_transaction */ | 2773 | /* We'll clean this up in btrfs_cleanup_transaction */ |
2775 | if (trans->aborted) | 2774 | if (trans->aborted) |
@@ -2779,10 +2778,8 @@ int btrfs_run_delayed_refs(struct btrfs_trans_handle *trans, | |||
2779 | root = root->fs_info->tree_root; | 2778 | root = root->fs_info->tree_root; |
2780 | 2779 | ||
2781 | delayed_refs = &trans->transaction->delayed_refs; | 2780 | delayed_refs = &trans->transaction->delayed_refs; |
2782 | if (count == 0) { | 2781 | if (count == 0) |
2783 | count = atomic_read(&delayed_refs->num_entries) * 2; | 2782 | count = atomic_read(&delayed_refs->num_entries) * 2; |
2784 | run_most = 1; | ||
2785 | } | ||
2786 | 2783 | ||
2787 | again: | 2784 | again: |
2788 | #ifdef SCRAMBLE_DELAYED_REFS | 2785 | #ifdef SCRAMBLE_DELAYED_REFS |