diff options
author | Eric Biggers <ebiggers@google.com> | 2019-12-31 12:04:44 -0600 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2020-01-17 16:24:55 -0500 |
commit | de7454854d6e8e3c3585c6df4b0b99017820aa0f (patch) | |
tree | 35ad18370da17a96950836416a938bdc6b1fdfa7 /fs/ext4/extents.c | |
parent | 6e89bbb79bc78f31e86a4de1ca3a36474bc3fb62 (diff) | |
download | linux-de7454854d6e8e3c3585c6df4b0b99017820aa0f.tar.bz2 |
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 <ebiggers@google.com>
Link: https://lore.kernel.org/r/20191231180444.46586-9-ebiggers@kernel.org
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Ritesh Harjani <riteshh@linux.ibm.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/ext4/extents.c')
-rw-r--r-- | fs/ext4/extents.c | 3 |
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; } + } } /* |