diff mbox

Btrfs: fix if style in find_free_extent

Message ID 1487029409-13562-1-git-send-email-bo.li.liu@oracle.com (mailing list archive)
State Superseded
Headers show

Commit Message

Liu Bo Feb. 13, 2017, 11:43 p.m. UTC
This puts '&&' on the first line of if statement.

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

Patch

diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index 6832047..4cf332c 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -7789,8 +7789,8 @@  static noinline int find_free_extent(struct btrfs_root *orig_root,
 	}
 	up_read(&space_info->groups_sem);
 
-	if ((loop == LOOP_CACHING_NOWAIT) && have_caching_bg
-		&& !orig_have_caching_bg)
+	if ((loop == LOOP_CACHING_NOWAIT) && have_caching_bg &&
+	    !orig_have_caching_bg)
 		orig_have_caching_bg = true;
 
 	if (!ins->objectid && loop >= LOOP_CACHING_WAIT && have_caching_bg)