]> Pileus Git - ~andy/linux/blobdiff - fs/ext4/dir.c
Merge branch 'topic/isa' into topic/misc
[~andy/linux] / fs / ext4 / dir.c
index af581f08fe3a81c74e5a27640ef0d28cc7c41082..374510f72baaaa02b3f8768ee4b5d8261ab1080c 100644 (file)
@@ -84,11 +84,10 @@ int __ext4_check_dir_entry(const char *function, unsigned int line,
                error_msg = "inode out of bounds";
 
        if (error_msg != NULL)
-               ext4_error_inode(function, dir,
-                       "bad entry in directory: %s - block=%llu"
+               ext4_error_inode(dir, function, line, bh->b_blocknr,
+                       "bad entry in directory: %s - "
                        "offset=%u(%u), inode=%u, rec_len=%d, name_len=%d",
-                       error_msg, (unsigned long long) bh->b_blocknr,
-                       (unsigned) (offset%bh->b_size), offset,
+                       error_msg, (unsigned) (offset%bh->b_size), offset,
                        le32_to_cpu(de->inode),
                        rlen, de->name_len);
        return error_msg == NULL ? 1 : 0;
@@ -345,7 +344,7 @@ int ext4_htree_store_dirent(struct file *dir_file, __u32 hash,
        struct dir_private_info *info;
        int len;
 
-       info = (struct dir_private_info *) dir_file->private_data;
+       info = dir_file->private_data;
        p = &info->root.rb_node;
 
        /* Create and allocate the fname structure */