Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 115925
b: refs/heads/master
c: cdbf6db
h: refs/heads/master
i:
  115923: 5aa50db
v: v3
  • Loading branch information
Eric Sandeen authored and Linus Torvalds committed Oct 20, 2008
1 parent 04b8418 commit 4fe458e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 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: 5ec8b75e3a2a94860ee99b5456fe1a963c8680e5
refs/heads/master: cdbf6dba28e8e6268c8420857696309470009fd9
10 changes: 7 additions & 3 deletions trunk/fs/ext3/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ static int ext3_readdir(struct file * filp,
int err;
struct inode *inode = filp->f_path.dentry->d_inode;
int ret = 0;
int dir_has_error = 0;

sb = inode->i_sb;

Expand Down Expand Up @@ -148,9 +149,12 @@ static int ext3_readdir(struct file * filp,
* of recovering data when there's a bad sector
*/
if (!bh) {
ext3_error (sb, "ext3_readdir",
"directory #%lu contains a hole at offset %lu",
inode->i_ino, (unsigned long)filp->f_pos);
if (!dir_has_error) {
ext3_error(sb, __func__, "directory #%lu "
"contains a hole at offset %lld",
inode->i_ino, filp->f_pos);
dir_has_error = 1;
}
/* corrupt size? Maybe no more blocks to read */
if (filp->f_pos > inode->i_blocks << 9)
break;
Expand Down

0 comments on commit 4fe458e

Please sign in to comment.