Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 112944
b: refs/heads/master
c: 9d9f177
h: refs/heads/master
v: v3
  • Loading branch information
Eric Sandeen authored and Theodore Ts'o committed Oct 9, 2008
1 parent c503252 commit 442e28d
Show file tree
Hide file tree
Showing 2 changed files with 9 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: cf17fea6575cb1739552e1d0cb2b446305ee3d0c
refs/heads/master: 9d9f177572d9e4eba0f2e18523b44f90dd51fe74
11 changes: 8 additions & 3 deletions trunk/fs/ext4/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ static int ext4_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,13 @@ static int ext4_readdir(struct file *filp,
* of recovering data when there's a bad sector
*/
if (!bh) {
ext4_error(sb, "ext4_readdir",
"directory #%lu contains a hole at offset %lu",
inode->i_ino, (unsigned long)filp->f_pos);
if (!dir_has_error) {
ext4_error(sb, __func__, "directory #%lu "
"contains a hole at offset %Lu",
inode->i_ino,
(unsigned long long) 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 442e28d

Please sign in to comment.