diff options
Diffstat (limited to 'fs/ext4/dir.c')
| -rw-r--r-- | fs/ext4/dir.c | 14 | 
1 files changed, 8 insertions, 6 deletions
| diff --git a/fs/ext4/dir.c b/fs/ext4/dir.c index 9dc93168e262..86cb6d86a048 100644 --- a/fs/ext4/dir.c +++ b/fs/ext4/dir.c | |||
| @@ -83,10 +83,12 @@ int ext4_check_dir_entry(const char *function, struct inode *dir, | |||
| 83 | error_msg = "inode out of bounds"; | 83 | error_msg = "inode out of bounds"; | 
| 84 | 84 | ||
| 85 | if (error_msg != NULL) | 85 | if (error_msg != NULL) | 
| 86 | ext4_error(dir->i_sb, function, | 86 | __ext4_error(dir->i_sb, function, | 
| 87 | "bad entry in directory #%lu: %s - " | 87 | "bad entry in directory #%lu: %s - block=%llu" | 
| 88 | "offset=%u, inode=%u, rec_len=%d, name_len=%d", | 88 | "offset=%u(%u), inode=%u, rec_len=%d, name_len=%d", | 
| 89 | dir->i_ino, error_msg, offset, | 89 | dir->i_ino, error_msg, | 
| 90 | (unsigned long long) bh->b_blocknr, | ||
| 91 | (unsigned) (offset%bh->b_size), offset, | ||
| 90 | le32_to_cpu(de->inode), | 92 | le32_to_cpu(de->inode), | 
| 91 | rlen, de->name_len); | 93 | rlen, de->name_len); | 
| 92 | return error_msg == NULL ? 1 : 0; | 94 | return error_msg == NULL ? 1 : 0; | 
| @@ -150,7 +152,7 @@ static int ext4_readdir(struct file *filp, | |||
| 150 | */ | 152 | */ | 
| 151 | if (!bh) { | 153 | if (!bh) { | 
| 152 | if (!dir_has_error) { | 154 | if (!dir_has_error) { | 
| 153 | ext4_error(sb, __func__, "directory #%lu " | 155 | ext4_error(sb, "directory #%lu " | 
| 154 | "contains a hole at offset %Lu", | 156 | "contains a hole at offset %Lu", | 
| 155 | inode->i_ino, | 157 | inode->i_ino, | 
| 156 | (unsigned long long) filp->f_pos); | 158 | (unsigned long long) filp->f_pos); | 
| @@ -303,7 +305,7 @@ static void free_rb_tree_fname(struct rb_root *root) | |||
| 303 | kfree(old); | 305 | kfree(old); | 
| 304 | } | 306 | } | 
| 305 | if (!parent) | 307 | if (!parent) | 
| 306 | root->rb_node = NULL; | 308 | *root = RB_ROOT; | 
| 307 | else if (parent->rb_left == n) | 309 | else if (parent->rb_left == n) | 
| 308 | parent->rb_left = NULL; | 310 | parent->rb_left = NULL; | 
| 309 | else if (parent->rb_right == n) | 311 | else if (parent->rb_right == n) | 
