Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127928
b: refs/heads/master
c: 25f1ee3
h: refs/heads/master
v: v3
  • Loading branch information
Wu Fengguang authored and Theodore Ts'o committed Nov 25, 2008
1 parent 6a0488a commit 5f6371c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 565a9617b2151e21b22700e97a8b04e70e103153
refs/heads/master: 25f1ee3aba17584ba4810da892175acab7fff9c8
11 changes: 4 additions & 7 deletions trunk/fs/ext4/extents.c
Original file line number Diff line number Diff line change
Expand Up @@ -1160,15 +1160,13 @@ ext4_ext_search_right(struct inode *inode, struct ext4_ext_path *path,
while (--depth >= 0) {
ix = path[depth].p_idx;
if (ix != EXT_LAST_INDEX(path[depth].p_hdr))
break;
goto got_index;
}

if (depth < 0) {
/* we've gone up to the root and
* found no index to the right */
return 0;
}
/* we've gone up to the root and found no index to the right */
return 0;

got_index:
/* we've found index to the right, let's
* follow it and find the closest allocated
* block to the right */
Expand Down Expand Up @@ -1201,7 +1199,6 @@ ext4_ext_search_right(struct inode *inode, struct ext4_ext_path *path,
*phys = ext_pblock(ex);
put_bh(bh);
return 0;

}

/*
Expand Down

0 comments on commit 5f6371c

Please sign in to comment.