diff mbox

Btrfs: cleanup unused run_most

Message ID 1418804049-11323-1-git-send-email-bo.li.liu@oracle.com (mailing list archive)
State Accepted
Headers show

Commit Message

Liu Bo Dec. 17, 2014, 8:14 a.m. UTC
"run_most" is not used anymore.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
---
 fs/btrfs/extent-tree.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

Comments

Satoru Takeuchi Dec. 17, 2014, 9:13 a.m. UTC | #1
(2014/12/17 17:14), Liu Bo wrote:
> "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>

Thanks,
Satoru

> ---
>   fs/btrfs/extent-tree.c | 5 +----
>   1 file changed, 1 insertion(+), 4 deletions(-)
> 
> diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
> index 222d6ae..4f54c30 100644
> --- a/fs/btrfs/extent-tree.c
> +++ b/fs/btrfs/extent-tree.c
> @@ -2768,7 +2768,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)
> @@ -2778,10 +2777,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
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index 222d6ae..4f54c30 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -2768,7 +2768,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)
@@ -2778,10 +2777,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