diff options
Diffstat (limited to 'fs/ocfs2/super.c')
-rw-r--r-- | fs/ocfs2/super.c | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c index 8dd3aafec499..949b3dac30f1 100644 --- a/fs/ocfs2/super.c +++ b/fs/ocfs2/super.c | |||
@@ -950,16 +950,18 @@ static void ocfs2_inode_init_once(void *data, | |||
950 | static int ocfs2_initialize_mem_caches(void) | 950 | static int ocfs2_initialize_mem_caches(void) |
951 | { | 951 | { |
952 | ocfs2_inode_cachep = kmem_cache_create("ocfs2_inode_cache", | 952 | ocfs2_inode_cachep = kmem_cache_create("ocfs2_inode_cache", |
953 | sizeof(struct ocfs2_inode_info), | 953 | sizeof(struct ocfs2_inode_info), |
954 | 0, SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT, | 954 | 0, |
955 | ocfs2_inode_init_once, NULL); | 955 | (SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT| |
956 | SLAB_MEM_SPREAD), | ||
957 | ocfs2_inode_init_once, NULL); | ||
956 | if (!ocfs2_inode_cachep) | 958 | if (!ocfs2_inode_cachep) |
957 | return -ENOMEM; | 959 | return -ENOMEM; |
958 | 960 | ||
959 | ocfs2_lock_cache = kmem_cache_create("ocfs2_lock", | 961 | ocfs2_lock_cache = kmem_cache_create("ocfs2_lock", |
960 | sizeof(struct ocfs2_journal_lock), | 962 | sizeof(struct ocfs2_journal_lock), |
961 | 0, | 963 | 0, |
962 | SLAB_NO_REAP|SLAB_HWCACHE_ALIGN, | 964 | SLAB_HWCACHE_ALIGN, |
963 | NULL, NULL); | 965 | NULL, NULL); |
964 | if (!ocfs2_lock_cache) | 966 | if (!ocfs2_lock_cache) |
965 | return -ENOMEM; | 967 | return -ENOMEM; |
@@ -1426,8 +1428,9 @@ static int ocfs2_initialize_super(struct super_block *sb, | |||
1426 | osb->fs_generation = le32_to_cpu(di->i_fs_generation); | 1428 | osb->fs_generation = le32_to_cpu(di->i_fs_generation); |
1427 | mlog(0, "vol_label: %s\n", osb->vol_label); | 1429 | mlog(0, "vol_label: %s\n", osb->vol_label); |
1428 | mlog(0, "uuid: %s\n", osb->uuid_str); | 1430 | mlog(0, "uuid: %s\n", osb->uuid_str); |
1429 | mlog(0, "root_blkno=%"MLFu64", system_dir_blkno=%"MLFu64"\n", | 1431 | mlog(0, "root_blkno=%llu, system_dir_blkno=%llu\n", |
1430 | osb->root_blkno, osb->system_dir_blkno); | 1432 | (unsigned long long)osb->root_blkno, |
1433 | (unsigned long long)osb->system_dir_blkno); | ||
1431 | 1434 | ||
1432 | osb->osb_dlm_debug = ocfs2_new_dlm_debug(); | 1435 | osb->osb_dlm_debug = ocfs2_new_dlm_debug(); |
1433 | if (!osb->osb_dlm_debug) { | 1436 | if (!osb->osb_dlm_debug) { |
@@ -1470,8 +1473,8 @@ static int ocfs2_initialize_super(struct super_block *sb, | |||
1470 | osb->bitmap_cpg = le16_to_cpu(di->id2.i_chain.cl_cpg); | 1473 | osb->bitmap_cpg = le16_to_cpu(di->id2.i_chain.cl_cpg); |
1471 | osb->num_clusters = le32_to_cpu(di->id1.bitmap1.i_total); | 1474 | osb->num_clusters = le32_to_cpu(di->id1.bitmap1.i_total); |
1472 | brelse(bitmap_bh); | 1475 | brelse(bitmap_bh); |
1473 | mlog(0, "cluster bitmap inode: %"MLFu64", clusters per group: %u\n", | 1476 | mlog(0, "cluster bitmap inode: %llu, clusters per group: %u\n", |
1474 | osb->bitmap_blkno, osb->bitmap_cpg); | 1477 | (unsigned long long)osb->bitmap_blkno, osb->bitmap_cpg); |
1475 | 1478 | ||
1476 | status = ocfs2_init_slot_info(osb); | 1479 | status = ocfs2_init_slot_info(osb); |
1477 | if (status < 0) { | 1480 | if (status < 0) { |
@@ -1529,8 +1532,9 @@ static int ocfs2_verify_volume(struct ocfs2_dinode *di, | |||
1529 | OCFS2_MINOR_REV_LEVEL); | 1532 | OCFS2_MINOR_REV_LEVEL); |
1530 | } else if (bh->b_blocknr != le64_to_cpu(di->i_blkno)) { | 1533 | } else if (bh->b_blocknr != le64_to_cpu(di->i_blkno)) { |
1531 | mlog(ML_ERROR, "bad block number on superblock: " | 1534 | mlog(ML_ERROR, "bad block number on superblock: " |
1532 | "found %"MLFu64", should be %llu\n", | 1535 | "found %llu, should be %llu\n", |
1533 | di->i_blkno, (unsigned long long)bh->b_blocknr); | 1536 | (unsigned long long)di->i_blkno, |
1537 | (unsigned long long)bh->b_blocknr); | ||
1534 | } else if (le32_to_cpu(di->id2.i_super.s_clustersize_bits) < 12 || | 1538 | } else if (le32_to_cpu(di->id2.i_super.s_clustersize_bits) < 12 || |
1535 | le32_to_cpu(di->id2.i_super.s_clustersize_bits) > 20) { | 1539 | le32_to_cpu(di->id2.i_super.s_clustersize_bits) > 20) { |
1536 | mlog(ML_ERROR, "bad cluster size found: %u\n", | 1540 | mlog(ML_ERROR, "bad cluster size found: %u\n", |