aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/super.c
diff options
context:
space:
mode:
authorWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2015-10-25 14:30:48 +0100
committerWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2015-10-25 14:30:48 +0100
commitf236331eca99eb2f3f0657cf16ed6a11ecc13aca (patch)
treef0aee9436b6fdf50f14c4f15e41b8c7616663558 /fs/ext4/super.c
parent81cf65ff6fa1af7199001a61ce126e57b64ce98a (diff)
downloadkernel_samsung_smdk4412-f236331eca99eb2f3f0657cf16ed6a11ecc13aca.zip
kernel_samsung_smdk4412-f236331eca99eb2f3f0657cf16ed6a11ecc13aca.tar.gz
kernel_samsung_smdk4412-f236331eca99eb2f3f0657cf16ed6a11ecc13aca.tar.bz2
merged fs
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r--fs/ext4/super.c57
1 files changed, 0 insertions, 57 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 630196f..e05cd34 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -3723,16 +3723,8 @@ no_journal:
return 0;
cantfind_ext4:
-
- /* for debugging, sangwoo2.lee */
- /* If you wanna use the flag 'MS_SILENT', call 'print_bh' function within below 'if'. */
- printk("printing data of superblock-bh\n");
- print_bh(sb, bh, 0, EXT4_BLOCK_SIZE(sb));
- /* for debugging */
-
if (!silent)
ext4_msg(sb, KERN_ERR, "VFS: Can't find ext4 filesystem");
-
goto failed_mount;
failed_mount7:
@@ -4837,55 +4829,6 @@ out:
#endif
-/* for debugging, sangwoo2.lee */
-void print_bh(struct super_block *sb, struct buffer_head *bh, int start, int len)
-{
- print_block_data(sb, bh->b_blocknr, bh->b_data, start, len);
-}
-
-void print_block_data(struct super_block *sb, sector_t blocknr, unsigned char *data_to_dump, int start, int len)
-{
- int i, j;
- int bh_offset = (start / 16) * 16;
- char row_data[17] = { 0, };
- char row_hex[50] = { 0, };
- char ch;
-
- printk(KERN_ERR "As EXT4-fs error, printing data in hex\n");
- printk(KERN_ERR " [partition info] s_id : %s, start block# : %llu\n", sb->s_id, sb->s_bdev->bd_part->start_sect);
- printk(KERN_ERR " dump block# : %llu, start offset(byte) : %d, length(byte) : %d\n", blocknr, start, len);
- printk(KERN_ERR "-----------------------------------------------------------------------------\n");
-
- for (i = 0; i < (len + 15) / 16; i++)
- {
- for (j = 0; j < 16; j++)
- {
- ch = *(data_to_dump + bh_offset + j);
- if (start <= bh_offset + j && start + len > bh_offset + j)
- {
- if (isascii(ch) && isprint(ch))
- sprintf(row_data + j, "%c", ch);
- else
- sprintf(row_data + j, ".");
-
- sprintf(row_hex + (j * 3), "%2.2x ", ch);
- }
- else
- {
- sprintf(row_data + j, " ");
- sprintf(row_hex + (j * 3), "-- ");
- }
- }
-
- printk(KERN_ERR "0x%4.4x : %s | %s\n", bh_offset, row_hex, row_data);
- bh_offset += 16;
-
- }
- printk(KERN_ERR "-----------------------------------------------------------------------------\n");
-}
-/* for debugging */
-
-
static struct dentry *ext4_mount(struct file_system_type *fs_type, int flags,
const char *dev_name, void *data)
{