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>
This commit is contained in:
committed by
Theodore Ts'o
parent
6e89bbb79b
commit
de7454854d
@@ -690,11 +690,12 @@ void ext4_ext_drop_refs(struct ext4_ext_path *path)
|
|||||||
if (!path)
|
if (!path)
|
||||||
return;
|
return;
|
||||||
depth = path->p_depth;
|
depth = path->p_depth;
|
||||||
for (i = 0; i <= depth; i++, path++)
|
for (i = 0; i <= depth; i++, path++) {
|
||||||
if (path->p_bh) {
|
if (path->p_bh) {
|
||||||
brelse(path->p_bh);
|
brelse(path->p_bh);
|
||||||
path->p_bh = NULL;
|
path->p_bh = NULL;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user