Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 33813
b: refs/heads/master
c: 3665d0e
h: refs/heads/master
i:
  33811: 3340988
v: v3
  • Loading branch information
Badari Pulavarty authored and Linus Torvalds committed Sep 8, 2006
1 parent afefafc commit b158e37
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 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: 47d4b9066df023670a61e74565a75293cf15a441
refs/heads/master: 3665d0e58fa44f50c744f85c7e8ad21d5b10e206
11 changes: 7 additions & 4 deletions trunk/fs/ext3/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1009,11 +1009,14 @@ struct buffer_head *ext3_getblk(handle_t *handle, struct inode *inode,
buffer_trace_init(&dummy.b_history);
err = ext3_get_blocks_handle(handle, inode, block, 1,
&dummy, create, 1);
if (err == 1) {
/*
* ext3_get_blocks_handle() returns number of blocks
* mapped. 0 in case of a HOLE.
*/
if (err > 0) {
if (err > 1)
WARN_ON(1);
err = 0;
} else if (err >= 0) {
WARN_ON(1);
err = -EIO;
}
*errp = err;
if (!err && buffer_mapped(&dummy)) {
Expand Down

0 comments on commit b158e37

Please sign in to comment.