mirror of
https://github.com/torvalds/linux.git
synced 2024-11-30 08:01:59 +00:00
ext4: fix some nonstandard indentation in extents.c
Clean up some code that was using 2-character indents. Signed-off-by: Eric Biggers <ebiggers@google.com> Link: https://lore.kernel.org/r/20191231180444.46586-8-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:
parent
61a6cb49da
commit
6e89bbb79b
@ -607,8 +607,9 @@ static void ext4_ext_show_path(struct inode *inode, struct ext4_ext_path *path)
|
||||
ext_debug("path:");
|
||||
for (k = 0; k <= l; k++, path++) {
|
||||
if (path->p_idx) {
|
||||
ext_debug(" %d->%llu", le32_to_cpu(path->p_idx->ei_block),
|
||||
ext4_idx_pblock(path->p_idx));
|
||||
ext_debug(" %d->%llu",
|
||||
le32_to_cpu(path->p_idx->ei_block),
|
||||
ext4_idx_pblock(path->p_idx));
|
||||
} else if (path->p_ext) {
|
||||
ext_debug(" %d:[%d]%d:%llu ",
|
||||
le32_to_cpu(path->p_ext->ee_block),
|
||||
@ -735,8 +736,8 @@ ext4_ext_binsearch_idx(struct inode *inode,
|
||||
|
||||
chix = ix = EXT_FIRST_INDEX(eh);
|
||||
for (k = 0; k < le16_to_cpu(eh->eh_entries); k++, ix++) {
|
||||
if (k != 0 &&
|
||||
le32_to_cpu(ix->ei_block) <= le32_to_cpu(ix[-1].ei_block)) {
|
||||
if (k != 0 && le32_to_cpu(ix->ei_block) <=
|
||||
le32_to_cpu(ix[-1].ei_block)) {
|
||||
printk(KERN_DEBUG "k=%d, ix=0x%p, "
|
||||
"first=0x%p\n", k,
|
||||
ix, EXT_FIRST_INDEX(eh));
|
||||
@ -1590,17 +1591,16 @@ ext4_ext_next_allocated_block(struct ext4_ext_path *path)
|
||||
return EXT_MAX_BLOCKS;
|
||||
|
||||
while (depth >= 0) {
|
||||
struct ext4_ext_path *p = &path[depth];
|
||||
|
||||
if (depth == path->p_depth) {
|
||||
/* leaf */
|
||||
if (path[depth].p_ext &&
|
||||
path[depth].p_ext !=
|
||||
EXT_LAST_EXTENT(path[depth].p_hdr))
|
||||
return le32_to_cpu(path[depth].p_ext[1].ee_block);
|
||||
if (p->p_ext && p->p_ext != EXT_LAST_EXTENT(p->p_hdr))
|
||||
return le32_to_cpu(p->p_ext[1].ee_block);
|
||||
} else {
|
||||
/* index */
|
||||
if (path[depth].p_idx !=
|
||||
EXT_LAST_INDEX(path[depth].p_hdr))
|
||||
return le32_to_cpu(path[depth].p_idx[1].ei_block);
|
||||
if (p->p_idx != EXT_LAST_INDEX(p->p_hdr))
|
||||
return le32_to_cpu(p->p_idx[1].ei_block);
|
||||
}
|
||||
depth--;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user