linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] btrfs: Fixed a brace coding style issue
@ 2021-02-15 15:08 Maheep Kumar Kathuria
  2021-02-24 19:13 ` David Sterba
  0 siblings, 1 reply; 2+ messages in thread
From: Maheep Kumar Kathuria @ 2021-02-15 15:08 UTC (permalink / raw)
  To: clm; +Cc: linux-btrfs, linux-kernel, Maheep Kumar Kathuria

Fixed a coding style issue in thresh_exec_hook()

Signed-off-by: Maheep Kumar Kathuria <me@maheepk.net>
---
 fs/btrfs/async-thread.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/fs/btrfs/async-thread.c b/fs/btrfs/async-thread.c
index 309516e6a968..38abeff7af69 100644
--- a/fs/btrfs/async-thread.c
+++ b/fs/btrfs/async-thread.c
@@ -212,9 +212,8 @@ static inline void thresh_exec_hook(struct __btrfs_workqueue *wq)
 out:
 	spin_unlock(&wq->thres_lock);
 
-	if (need_change) {
+	if (need_change)
 		workqueue_set_max_active(wq->normal_wq, wq->current_active);
-	}
 }
 
 static void run_ordered_work(struct __btrfs_workqueue *wq,
-- 
2.29.2


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

* Re: [PATCH] btrfs: Fixed a brace coding style issue
  2021-02-15 15:08 [PATCH] btrfs: Fixed a brace coding style issue Maheep Kumar Kathuria
@ 2021-02-24 19:13 ` David Sterba
  0 siblings, 0 replies; 2+ messages in thread
From: David Sterba @ 2021-02-24 19:13 UTC (permalink / raw)
  To: Maheep Kumar Kathuria; +Cc: clm, linux-btrfs, linux-kernel

On Mon, Feb 15, 2021 at 08:38:20PM +0530, Maheep Kumar Kathuria wrote:
> Fixed a coding style issue in thresh_exec_hook()
> 
> Signed-off-by: Maheep Kumar Kathuria <me@maheepk.net>
> ---
>  fs/btrfs/async-thread.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/fs/btrfs/async-thread.c b/fs/btrfs/async-thread.c
> index 309516e6a968..38abeff7af69 100644
> --- a/fs/btrfs/async-thread.c
> +++ b/fs/btrfs/async-thread.c
> @@ -212,9 +212,8 @@ static inline void thresh_exec_hook(struct __btrfs_workqueue *wq)
>  out:
>  	spin_unlock(&wq->thres_lock);
>  
> -	if (need_change) {
> +	if (need_change)
>  		workqueue_set_max_active(wq->normal_wq, wq->current_active);
> -	}

This is really a trivial change, have you checked if there are more?
Fixing them in a larger batch would be better than one by one.

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

end of thread, other threads:[~2021-02-24 19:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-15 15:08 [PATCH] btrfs: Fixed a brace coding style issue Maheep Kumar Kathuria
2021-02-24 19:13 ` David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).