All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Btrfs: cleanup unused run_most
@ 2014-12-17  8:14 Liu Bo
  2014-12-17  9:13 ` Satoru Takeuchi
  0 siblings, 1 reply; 2+ messages in thread
From: Liu Bo @ 2014-12-17  8:14 UTC (permalink / raw)
  To: linux-btrfs

"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(-)

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
-- 
1.8.1.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Btrfs: cleanup unused run_most
  2014-12-17  8:14 [PATCH] Btrfs: cleanup unused run_most Liu Bo
@ 2014-12-17  9:13 ` Satoru Takeuchi
  0 siblings, 0 replies; 2+ messages in thread
From: Satoru Takeuchi @ 2014-12-17  9:13 UTC (permalink / raw)
  To: Liu Bo, linux-btrfs

(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
> 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-12-17  9:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-17  8:14 [PATCH] Btrfs: cleanup unused run_most Liu Bo
2014-12-17  9:13 ` Satoru Takeuchi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.