OSDN Git Service

ext4: add missing braces in ext4_ext_drop_refs()
authorEric Biggers <ebiggers@google.com>
Tue, 31 Dec 2019 18:04:44 +0000 (12:04 -0600)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 17 Jan 2020 21:24:55 +0000 (16:24 -0500)
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>
fs/ext4/extents.c

index 6f13071..393533f 100644 (file)
@@ -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;
                }
+       }
 }
 
 /*