aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Biggers <[email protected]>2019-12-31 12:04:44 -0600
committerTheodore Ts'o <[email protected]>2020-01-17 16:24:55 -0500
commitde7454854d6e8e3c3585c6df4b0b99017820aa0f (patch)
tree35ad18370da17a96950836416a938bdc6b1fdfa7
parent6e89bbb79bc78f31e86a4de1ca3a36474bc3fb62 (diff)
ext4: add missing braces in ext4_ext_drop_refs()
For clarity, add braces to the loop in ext4_ext_drop_refs(). Signed-off-by: Eric Biggers <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Theodore Ts'o <[email protected]> Reviewed-by: Ritesh Harjani <[email protected]> Reviewed-by: Jan Kara <[email protected]>
-rw-r--r--fs/ext4/extents.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index 6f13071d76d5..393533ff0527 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -690,11 +690,12 @@ void ext4_ext_drop_refs(struct ext4_ext_path *path)
if (!path)
return;
depth = path->p_depth;
- for (i = 0; i <= depth; i++, path++)
+ for (i = 0; i <= depth; i++, path++) {
if (path->p_bh) {
brelse(path->p_bh);
path->p_bh = NULL;
}
+ }
}
/*