Loading fs/ocfs2/alloc.c +45 −43 Original line number Diff line number Diff line Loading @@ -566,9 +566,8 @@ static int ocfs2_do_insert_extent(struct ocfs2_super *osb, next_free = le16_to_cpu(el->l_next_free_rec); if (next_free == 0) { ocfs2_error(inode->i_sb, "Dinode %"MLFu64" has a bad " "extent list", OCFS2_I(inode)->ip_blkno); "Dinode %llu has a bad extent list", (unsigned long long)OCFS2_I(inode)->ip_blkno); status = -EIO; goto bail; } Loading Loading @@ -611,9 +610,8 @@ static int ocfs2_do_insert_extent(struct ocfs2_super *osb, next_free = le16_to_cpu(el->l_next_free_rec); if (next_free == 0) { ocfs2_error(inode->i_sb, "Dinode %"MLFu64" has a bad " "extent list", OCFS2_I(inode)->ip_blkno); "Dinode %llu has a bad extent list", (unsigned long long)OCFS2_I(inode)->ip_blkno); status = -EIO; goto bail; } Loading Loading @@ -652,8 +650,9 @@ static int ocfs2_do_insert_extent(struct ocfs2_super *osb, /* having an empty extent at eof is legal. */ if (el->l_recs[i].e_cpos != fe->i_clusters) { ocfs2_error(inode->i_sb, "Dinode %"MLFu64" trailing extent is bad: " "Dinode %llu trailing extent is bad: " "cpos (%u) != number of clusters (%u)", (unsigned long long)OCFS2_I(inode)->ip_blkno, le32_to_cpu(el->l_recs[i].e_cpos), le32_to_cpu(fe->i_clusters)); status = -EIO; Loading Loading @@ -747,19 +746,19 @@ static int ocfs2_find_branch_target(struct ocfs2_super *osb, while(le16_to_cpu(el->l_tree_depth) > 1) { if (le16_to_cpu(el->l_next_free_rec) == 0) { ocfs2_error(inode->i_sb, "Dinode %"MLFu64" has empty " ocfs2_error(inode->i_sb, "Dinode %llu has empty " "extent list (next_free_rec == 0)", OCFS2_I(inode)->ip_blkno); (unsigned long long)OCFS2_I(inode)->ip_blkno); status = -EIO; goto bail; } i = le16_to_cpu(el->l_next_free_rec) - 1; blkno = le64_to_cpu(el->l_recs[i].e_blkno); if (!blkno) { ocfs2_error(inode->i_sb, "Dinode %"MLFu64" has extent " ocfs2_error(inode->i_sb, "Dinode %llu has extent " "list where extent # %d has no physical " "block start", OCFS2_I(inode)->ip_blkno, i); (unsigned long long)OCFS2_I(inode)->ip_blkno, i); status = -EIO; goto bail; } Loading Loading @@ -826,9 +825,9 @@ int ocfs2_insert_extent(struct ocfs2_super *osb, mlog_entry_void(); mlog(0, "add %u clusters starting at block %"MLFu64" to " "inode %"MLFu64"\n", new_clusters, start_blk, OCFS2_I(inode)->ip_blkno); mlog(0, "add %u clusters starting at block %llu to inode %llu\n", new_clusters, (unsigned long long)start_blk, (unsigned long long)OCFS2_I(inode)->ip_blkno); fe = (struct ocfs2_dinode *) fe_bh->b_data; el = &fe->id2.i_list; Loading Loading @@ -963,8 +962,8 @@ static int ocfs2_truncate_log_append(struct ocfs2_super *osb, struct ocfs2_dinode *di; struct ocfs2_truncate_log *tl; mlog_entry("start_blk = %"MLFu64", num_clusters = %u\n", start_blk, num_clusters); mlog_entry("start_blk = %llu, num_clusters = %u\n", (unsigned long long)start_blk, num_clusters); BUG_ON(mutex_trylock(&tl_inode->i_mutex)); Loading @@ -981,8 +980,9 @@ static int ocfs2_truncate_log_append(struct ocfs2_super *osb, tl_count = le16_to_cpu(tl->tl_count); mlog_bug_on_msg(tl_count > ocfs2_truncate_recs_per_inode(osb->sb) || tl_count == 0, "Truncate record count on #%"MLFu64" invalid (" "wanted %u, actual %u\n", OCFS2_I(tl_inode)->ip_blkno, "Truncate record count on #%llu invalid " "wanted %u, actual %u\n", (unsigned long long)OCFS2_I(tl_inode)->ip_blkno, ocfs2_truncate_recs_per_inode(osb->sb), le16_to_cpu(tl->tl_count)); Loading @@ -1002,8 +1002,8 @@ static int ocfs2_truncate_log_append(struct ocfs2_super *osb, } mlog(0, "Log truncate of %u clusters starting at cluster %u to " "%"MLFu64" (index = %d)\n", num_clusters, start_cluster, OCFS2_I(tl_inode)->ip_blkno, index); "%llu (index = %d)\n", num_clusters, start_cluster, (unsigned long long)OCFS2_I(tl_inode)->ip_blkno, index); if (ocfs2_truncate_log_can_coalesce(tl, start_cluster)) { /* Loading Loading @@ -1134,8 +1134,8 @@ static int __ocfs2_flush_truncate_log(struct ocfs2_super *osb) } num_to_flush = le16_to_cpu(tl->tl_used); mlog(0, "Flush %u records from truncate log #%"MLFu64"\n", num_to_flush, OCFS2_I(tl_inode)->ip_blkno); mlog(0, "Flush %u records from truncate log #%llu\n", num_to_flush, (unsigned long long)OCFS2_I(tl_inode)->ip_blkno); if (!num_to_flush) { status = 0; goto bail; Loading Loading @@ -1360,8 +1360,8 @@ int ocfs2_complete_truncate_log_recovery(struct ocfs2_super *osb, tl = &tl_copy->id2.i_dealloc; num_recs = le16_to_cpu(tl->tl_used); mlog(0, "cleanup %u records from %"MLFu64"\n", num_recs, tl_copy->i_blkno); mlog(0, "cleanup %u records from %llu\n", num_recs, (unsigned long long)tl_copy->i_blkno); mutex_lock(&tl_inode->i_mutex); for(i = 0; i < num_recs; i++) { Loading Loading @@ -1529,7 +1529,8 @@ static int ocfs2_find_new_last_ext_blk(struct ocfs2_super *osb, *new_last_eb = bh; get_bh(*new_last_eb); mlog(0, "returning block %"MLFu64"\n", le64_to_cpu(eb->h_blkno)); mlog(0, "returning block %llu\n", (unsigned long long)le64_to_cpu(eb->h_blkno)); bail: if (bh) brelse(bh); Loading Loading @@ -1646,8 +1647,8 @@ static int ocfs2_do_truncate(struct ocfs2_super *osb, /* if our tree depth > 0, update all the tree blocks below us. */ while (depth) { mlog(0, "traveling tree (depth = %d, next_eb = %"MLFu64")\n", depth, next_eb); mlog(0, "traveling tree (depth = %d, next_eb = %llu)\n", depth, (unsigned long long)next_eb); status = ocfs2_read_block(osb, next_eb, &eb_bh, OCFS2_BH_CACHED, inode); if (status < 0) { Loading @@ -1674,12 +1675,12 @@ static int ocfs2_do_truncate(struct ocfs2_super *osb, i = le16_to_cpu(el->l_next_free_rec) - 1; mlog(0, "extent block %"MLFu64", before: record %d: " "(%u, %u, %"MLFu64"), next = %u\n", le64_to_cpu(eb->h_blkno), i, mlog(0, "extent block %llu, before: record %d: " "(%u, %u, %llu), next = %u\n", (unsigned long long)le64_to_cpu(eb->h_blkno), i, le32_to_cpu(el->l_recs[i].e_cpos), le32_to_cpu(el->l_recs[i].e_clusters), le64_to_cpu(el->l_recs[i].e_blkno), (unsigned long long)le64_to_cpu(el->l_recs[i].e_blkno), le16_to_cpu(el->l_next_free_rec)); BUG_ON(le32_to_cpu(el->l_recs[i].e_clusters) < clusters_to_del); Loading @@ -1697,12 +1698,12 @@ static int ocfs2_do_truncate(struct ocfs2_super *osb, BUG_ON(!el->l_next_free_rec); le16_add_cpu(&el->l_next_free_rec, -1); } mlog(0, "extent block %"MLFu64", after: record %d: " "(%u, %u, %"MLFu64"), next = %u\n", le64_to_cpu(eb->h_blkno), i, mlog(0, "extent block %llu, after: record %d: " "(%u, %u, %llu), next = %u\n", (unsigned long long)le64_to_cpu(eb->h_blkno), i, le32_to_cpu(el->l_recs[i].e_cpos), le32_to_cpu(el->l_recs[i].e_clusters), le64_to_cpu(el->l_recs[i].e_blkno), (unsigned long long)le64_to_cpu(el->l_recs[i].e_blkno), le16_to_cpu(el->l_next_free_rec)); status = ocfs2_journal_dirty(handle, eb_bh); Loading Loading @@ -1792,10 +1793,10 @@ int ocfs2_commit_truncate(struct ocfs2_super *osb, last_eb = le64_to_cpu(fe->i_last_eb_blk); start: mlog(0, "ocfs2_commit_truncate: fe->i_clusters = %u, " "last_eb = %"MLFu64", fe->i_last_eb_blk = %"MLFu64", " "last_eb = %llu, fe->i_last_eb_blk = %llu, " "fe->id2.i_list.l_tree_depth = %u last_eb_bh = %p\n", le32_to_cpu(fe->i_clusters), last_eb, le64_to_cpu(fe->i_last_eb_blk), le32_to_cpu(fe->i_clusters), (unsigned long long)last_eb, (unsigned long long)le64_to_cpu(fe->i_last_eb_blk), le16_to_cpu(fe->id2.i_list.l_tree_depth), last_eb_bh); if (last_eb != le64_to_cpu(fe->i_last_eb_blk)) { Loading Loading @@ -1934,16 +1935,17 @@ int ocfs2_prepare_truncate(struct ocfs2_super *osb, fe = (struct ocfs2_dinode *) fe_bh->b_data; mlog(0, "fe->i_clusters = %u, new_i_clusters = %u, fe->i_size =" "%"MLFu64"\n", fe->i_clusters, new_i_clusters, fe->i_size); "%llu\n", fe->i_clusters, new_i_clusters, (unsigned long long)fe->i_size); if (le32_to_cpu(fe->i_clusters) <= new_i_clusters) { ocfs2_error(inode->i_sb, "Dinode %"MLFu64" has cluster count " "%u and size %"MLFu64" whereas struct inode has " ocfs2_error(inode->i_sb, "Dinode %llu has cluster count " "%u and size %llu whereas struct inode has " "cluster count %u and size %llu which caused an " "invalid truncate to %u clusters.", le64_to_cpu(fe->i_blkno), (unsigned long long)le64_to_cpu(fe->i_blkno), le32_to_cpu(fe->i_clusters), le64_to_cpu(fe->i_size), (unsigned long long)le64_to_cpu(fe->i_size), OCFS2_I(inode)->ip_clusters, i_size_read(inode), new_i_clusters); mlog_meta_lvb(ML_ERROR, &OCFS2_I(inode)->ip_meta_lockres); Loading fs/ocfs2/aops.c +10 −8 Original line number Diff line number Diff line Loading @@ -74,8 +74,8 @@ static int ocfs2_symlink_get_block(struct inode *inode, sector_t iblock, fe = (struct ocfs2_dinode *) bh->b_data; if (!OCFS2_IS_VALID_DINODE(fe)) { mlog(ML_ERROR, "Invalid dinode #%"MLFu64": signature = %.*s\n", fe->i_blkno, 7, fe->i_signature); mlog(ML_ERROR, "Invalid dinode #%llu: signature = %.*s\n", (unsigned long long)fe->i_blkno, 7, fe->i_signature); goto bail; } Loading Loading @@ -162,8 +162,8 @@ static int ocfs2_get_block(struct inode *inode, sector_t iblock, NULL); if (err) { mlog(ML_ERROR, "Error %d from get_blocks(0x%p, %llu, 1, " "%"MLFu64", NULL)\n", err, inode, (unsigned long long)iblock, p_blkno); "%llu, NULL)\n", err, inode, (unsigned long long)iblock, (unsigned long long)p_blkno); goto bail; } Loading @@ -171,13 +171,15 @@ static int ocfs2_get_block(struct inode *inode, sector_t iblock, if (bh_result->b_blocknr == 0) { err = -EIO; mlog(ML_ERROR, "iblock = %llu p_blkno = %"MLFu64" " "blkno=(%"MLFu64")\n", (unsigned long long)iblock, p_blkno, OCFS2_I(inode)->ip_blkno); mlog(ML_ERROR, "iblock = %llu p_blkno = %llu blkno=(%llu)\n", (unsigned long long)iblock, (unsigned long long)p_blkno, (unsigned long long)OCFS2_I(inode)->ip_blkno); } past_eof = ocfs2_blocks_for_bytes(inode->i_sb, i_size_read(inode)); mlog(0, "Inode %lu, past_eof = %"MLFu64"\n", inode->i_ino, past_eof); mlog(0, "Inode %lu, past_eof = %llu\n", inode->i_ino, (unsigned long long)past_eof); if (create && (iblock >= past_eof)) set_buffer_new(bh_result); Loading fs/ocfs2/buffer_head_io.c +6 −5 Original line number Diff line number Diff line Loading @@ -97,8 +97,8 @@ int ocfs2_read_blocks(struct ocfs2_super *osb, u64 block, int nr, int i, ignore_cache = 0; struct buffer_head *bh; mlog_entry("(block=(%"MLFu64"), nr=(%d), flags=%d, inode=%p)\n", block, nr, flags, inode); mlog_entry("(block=(%llu), nr=(%d), flags=%d, inode=%p)\n", (unsigned long long)block, nr, flags, inode); if (osb == NULL || osb->sb == NULL || bhs == NULL) { status = -EINVAL; Loading Loading @@ -143,9 +143,9 @@ int ocfs2_read_blocks(struct ocfs2_super *osb, u64 block, int nr, if (flags & OCFS2_BH_CACHED && !ocfs2_buffer_uptodate(inode, bh)) { mlog(ML_UPTODATE, "bh (%llu), inode %"MLFu64" not uptodate\n", "bh (%llu), inode %llu not uptodate\n", (unsigned long long)bh->b_blocknr, OCFS2_I(inode)->ip_blkno); (unsigned long long)OCFS2_I(inode)->ip_blkno); ignore_cache = 1; } Loading Loading @@ -222,7 +222,8 @@ int ocfs2_read_blocks(struct ocfs2_super *osb, u64 block, int nr, if (inode) mutex_unlock(&OCFS2_I(inode)->ip_io_mutex); mlog(ML_BH_IO, "block=(%"MLFu64"), nr=(%d), cached=%s\n", block, nr, mlog(ML_BH_IO, "block=(%llu), nr=(%d), cached=%s\n", (unsigned long long)block, nr, (!(flags & OCFS2_BH_CACHED) || ignore_cache) ? "no" : "yes"); bail: Loading fs/ocfs2/dcache.c +5 −4 Original line number Diff line number Diff line Loading @@ -64,15 +64,16 @@ static int ocfs2_dentry_revalidate(struct dentry *dentry, /* did we or someone else delete this inode? */ if (OCFS2_I(inode)->ip_flags & OCFS2_INODE_DELETED) { spin_unlock(&OCFS2_I(inode)->ip_lock); mlog(0, "inode (%"MLFu64") deleted, returning false\n", OCFS2_I(inode)->ip_blkno); mlog(0, "inode (%llu) deleted, returning false\n", (unsigned long long)OCFS2_I(inode)->ip_blkno); goto bail; } spin_unlock(&OCFS2_I(inode)->ip_lock); if (!inode->i_nlink) { mlog(0, "Inode %"MLFu64" orphaned, returning false " "dir = %d\n", OCFS2_I(inode)->ip_blkno, mlog(0, "Inode %llu orphaned, returning false " "dir = %d\n", (unsigned long long)OCFS2_I(inode)->ip_blkno, S_ISDIR(inode->i_mode)); goto bail; } Loading fs/ocfs2/dir.c +20 −22 Original line number Diff line number Diff line Loading @@ -83,7 +83,8 @@ int ocfs2_readdir(struct file * filp, void * dirent, filldir_t filldir) struct super_block * sb = inode->i_sb; int have_disk_lock = 0; mlog_entry("dirino=%"MLFu64"\n", OCFS2_I(inode)->ip_blkno); mlog_entry("dirino=%llu\n", (unsigned long long)OCFS2_I(inode)->ip_blkno); stored = 0; bh = NULL; Loading @@ -104,9 +105,9 @@ int ocfs2_readdir(struct file * filp, void * dirent, filldir_t filldir) blk = (filp->f_pos) >> sb->s_blocksize_bits; bh = ocfs2_bread(inode, blk, &err, 0); if (!bh) { mlog(ML_ERROR, "directory #%"MLFu64" contains a hole " "at offset %lld\n", OCFS2_I(inode)->ip_blkno, mlog(ML_ERROR, "directory #%llu contains a hole at offset %lld\n", (unsigned long long)OCFS2_I(inode)->ip_blkno, filp->f_pos); filp->f_pos += sb->s_blocksize - offset; continue; Loading Loading @@ -214,9 +215,9 @@ int ocfs2_find_files_on_disk(const char *name, int status = -ENOENT; struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); mlog_entry("(osb=%p, parent=%"MLFu64", name='%.*s', blkno=%p, " "inode=%p)\n", osb, OCFS2_I(inode)->ip_blkno, namelen, name, blkno, inode); mlog_entry("(osb=%p, parent=%llu, name='%.*s', blkno=%p, inode=%p)\n", osb, (unsigned long long)OCFS2_I(inode)->ip_blkno, namelen, name, blkno, inode); *dirent_bh = ocfs2_find_entry(name, namelen, inode, dirent); if (!*dirent_bh || !*dirent) { Loading Loading @@ -255,8 +256,8 @@ int ocfs2_check_dir_for_entry(struct inode *dir, struct buffer_head *dirent_bh = NULL; struct ocfs2_dir_entry *dirent = NULL; mlog_entry("dir %"MLFu64", name '%.*s'\n", OCFS2_I(dir)->ip_blkno, namelen, name); mlog_entry("dir %llu, name '%.*s'\n", (unsigned long long)OCFS2_I(dir)->ip_blkno, namelen, name); ret = -EEXIST; dirent_bh = ocfs2_find_entry(name, namelen, dir, &dirent); Loading Loading @@ -287,9 +288,8 @@ int ocfs2_empty_dir(struct inode *inode) if ((i_size_read(inode) < (OCFS2_DIR_REC_LEN(1) + OCFS2_DIR_REC_LEN(2))) || !(bh = ocfs2_bread(inode, 0, &err, 0))) { mlog(ML_ERROR, "bad directory (dir #%"MLFu64") - " "no data block\n", OCFS2_I(inode)->ip_blkno); mlog(ML_ERROR, "bad directory (dir #%llu) - no data block\n", (unsigned long long)OCFS2_I(inode)->ip_blkno); return 1; } Loading @@ -300,9 +300,8 @@ int ocfs2_empty_dir(struct inode *inode) !le64_to_cpu(de1->inode) || strcmp(".", de->name) || strcmp("..", de1->name)) { mlog(ML_ERROR, "bad directory (dir #%"MLFu64") - " "no `.' or `..'\n", OCFS2_I(inode)->ip_blkno); mlog(ML_ERROR, "bad directory (dir #%llu) - no `.' or `..'\n", (unsigned long long)OCFS2_I(inode)->ip_blkno); brelse(bh); return 1; } Loading @@ -314,9 +313,8 @@ int ocfs2_empty_dir(struct inode *inode) bh = ocfs2_bread(inode, offset >> sb->s_blocksize_bits, &err, 0); if (!bh) { mlog(ML_ERROR, "directory #%"MLFu64" contains " "a hole at offset %lu\n", OCFS2_I(inode)->ip_blkno, offset); mlog(ML_ERROR, "dir %llu has a hole at %lu\n", (unsigned long long)OCFS2_I(inode)->ip_blkno, offset); offset += sb->s_blocksize; continue; } Loading Loading @@ -406,8 +404,8 @@ static int ocfs2_extend_dir(struct ocfs2_super *osb, mlog_entry_void(); dir_i_size = i_size_read(dir); mlog(0, "extending dir %"MLFu64" (i_size = %lld)\n", OCFS2_I(dir)->ip_blkno, dir_i_size); mlog(0, "extending dir %llu (i_size = %lld)\n", (unsigned long long)OCFS2_I(dir)->ip_blkno, dir_i_size); handle = ocfs2_alloc_handle(osb); if (handle == NULL) { Loading Loading @@ -531,8 +529,8 @@ int ocfs2_prepare_dir_for_insert(struct ocfs2_super *osb, mlog_entry_void(); mlog(0, "getting ready to insert namelen %d into dir %"MLFu64"\n", namelen, OCFS2_I(dir)->ip_blkno); mlog(0, "getting ready to insert namelen %d into dir %llu\n", namelen, (unsigned long long)OCFS2_I(dir)->ip_blkno); BUG_ON(!S_ISDIR(dir->i_mode)); fe = (struct ocfs2_dinode *) parent_fe_bh->b_data; Loading Loading
fs/ocfs2/alloc.c +45 −43 Original line number Diff line number Diff line Loading @@ -566,9 +566,8 @@ static int ocfs2_do_insert_extent(struct ocfs2_super *osb, next_free = le16_to_cpu(el->l_next_free_rec); if (next_free == 0) { ocfs2_error(inode->i_sb, "Dinode %"MLFu64" has a bad " "extent list", OCFS2_I(inode)->ip_blkno); "Dinode %llu has a bad extent list", (unsigned long long)OCFS2_I(inode)->ip_blkno); status = -EIO; goto bail; } Loading Loading @@ -611,9 +610,8 @@ static int ocfs2_do_insert_extent(struct ocfs2_super *osb, next_free = le16_to_cpu(el->l_next_free_rec); if (next_free == 0) { ocfs2_error(inode->i_sb, "Dinode %"MLFu64" has a bad " "extent list", OCFS2_I(inode)->ip_blkno); "Dinode %llu has a bad extent list", (unsigned long long)OCFS2_I(inode)->ip_blkno); status = -EIO; goto bail; } Loading Loading @@ -652,8 +650,9 @@ static int ocfs2_do_insert_extent(struct ocfs2_super *osb, /* having an empty extent at eof is legal. */ if (el->l_recs[i].e_cpos != fe->i_clusters) { ocfs2_error(inode->i_sb, "Dinode %"MLFu64" trailing extent is bad: " "Dinode %llu trailing extent is bad: " "cpos (%u) != number of clusters (%u)", (unsigned long long)OCFS2_I(inode)->ip_blkno, le32_to_cpu(el->l_recs[i].e_cpos), le32_to_cpu(fe->i_clusters)); status = -EIO; Loading Loading @@ -747,19 +746,19 @@ static int ocfs2_find_branch_target(struct ocfs2_super *osb, while(le16_to_cpu(el->l_tree_depth) > 1) { if (le16_to_cpu(el->l_next_free_rec) == 0) { ocfs2_error(inode->i_sb, "Dinode %"MLFu64" has empty " ocfs2_error(inode->i_sb, "Dinode %llu has empty " "extent list (next_free_rec == 0)", OCFS2_I(inode)->ip_blkno); (unsigned long long)OCFS2_I(inode)->ip_blkno); status = -EIO; goto bail; } i = le16_to_cpu(el->l_next_free_rec) - 1; blkno = le64_to_cpu(el->l_recs[i].e_blkno); if (!blkno) { ocfs2_error(inode->i_sb, "Dinode %"MLFu64" has extent " ocfs2_error(inode->i_sb, "Dinode %llu has extent " "list where extent # %d has no physical " "block start", OCFS2_I(inode)->ip_blkno, i); (unsigned long long)OCFS2_I(inode)->ip_blkno, i); status = -EIO; goto bail; } Loading Loading @@ -826,9 +825,9 @@ int ocfs2_insert_extent(struct ocfs2_super *osb, mlog_entry_void(); mlog(0, "add %u clusters starting at block %"MLFu64" to " "inode %"MLFu64"\n", new_clusters, start_blk, OCFS2_I(inode)->ip_blkno); mlog(0, "add %u clusters starting at block %llu to inode %llu\n", new_clusters, (unsigned long long)start_blk, (unsigned long long)OCFS2_I(inode)->ip_blkno); fe = (struct ocfs2_dinode *) fe_bh->b_data; el = &fe->id2.i_list; Loading Loading @@ -963,8 +962,8 @@ static int ocfs2_truncate_log_append(struct ocfs2_super *osb, struct ocfs2_dinode *di; struct ocfs2_truncate_log *tl; mlog_entry("start_blk = %"MLFu64", num_clusters = %u\n", start_blk, num_clusters); mlog_entry("start_blk = %llu, num_clusters = %u\n", (unsigned long long)start_blk, num_clusters); BUG_ON(mutex_trylock(&tl_inode->i_mutex)); Loading @@ -981,8 +980,9 @@ static int ocfs2_truncate_log_append(struct ocfs2_super *osb, tl_count = le16_to_cpu(tl->tl_count); mlog_bug_on_msg(tl_count > ocfs2_truncate_recs_per_inode(osb->sb) || tl_count == 0, "Truncate record count on #%"MLFu64" invalid (" "wanted %u, actual %u\n", OCFS2_I(tl_inode)->ip_blkno, "Truncate record count on #%llu invalid " "wanted %u, actual %u\n", (unsigned long long)OCFS2_I(tl_inode)->ip_blkno, ocfs2_truncate_recs_per_inode(osb->sb), le16_to_cpu(tl->tl_count)); Loading @@ -1002,8 +1002,8 @@ static int ocfs2_truncate_log_append(struct ocfs2_super *osb, } mlog(0, "Log truncate of %u clusters starting at cluster %u to " "%"MLFu64" (index = %d)\n", num_clusters, start_cluster, OCFS2_I(tl_inode)->ip_blkno, index); "%llu (index = %d)\n", num_clusters, start_cluster, (unsigned long long)OCFS2_I(tl_inode)->ip_blkno, index); if (ocfs2_truncate_log_can_coalesce(tl, start_cluster)) { /* Loading Loading @@ -1134,8 +1134,8 @@ static int __ocfs2_flush_truncate_log(struct ocfs2_super *osb) } num_to_flush = le16_to_cpu(tl->tl_used); mlog(0, "Flush %u records from truncate log #%"MLFu64"\n", num_to_flush, OCFS2_I(tl_inode)->ip_blkno); mlog(0, "Flush %u records from truncate log #%llu\n", num_to_flush, (unsigned long long)OCFS2_I(tl_inode)->ip_blkno); if (!num_to_flush) { status = 0; goto bail; Loading Loading @@ -1360,8 +1360,8 @@ int ocfs2_complete_truncate_log_recovery(struct ocfs2_super *osb, tl = &tl_copy->id2.i_dealloc; num_recs = le16_to_cpu(tl->tl_used); mlog(0, "cleanup %u records from %"MLFu64"\n", num_recs, tl_copy->i_blkno); mlog(0, "cleanup %u records from %llu\n", num_recs, (unsigned long long)tl_copy->i_blkno); mutex_lock(&tl_inode->i_mutex); for(i = 0; i < num_recs; i++) { Loading Loading @@ -1529,7 +1529,8 @@ static int ocfs2_find_new_last_ext_blk(struct ocfs2_super *osb, *new_last_eb = bh; get_bh(*new_last_eb); mlog(0, "returning block %"MLFu64"\n", le64_to_cpu(eb->h_blkno)); mlog(0, "returning block %llu\n", (unsigned long long)le64_to_cpu(eb->h_blkno)); bail: if (bh) brelse(bh); Loading Loading @@ -1646,8 +1647,8 @@ static int ocfs2_do_truncate(struct ocfs2_super *osb, /* if our tree depth > 0, update all the tree blocks below us. */ while (depth) { mlog(0, "traveling tree (depth = %d, next_eb = %"MLFu64")\n", depth, next_eb); mlog(0, "traveling tree (depth = %d, next_eb = %llu)\n", depth, (unsigned long long)next_eb); status = ocfs2_read_block(osb, next_eb, &eb_bh, OCFS2_BH_CACHED, inode); if (status < 0) { Loading @@ -1674,12 +1675,12 @@ static int ocfs2_do_truncate(struct ocfs2_super *osb, i = le16_to_cpu(el->l_next_free_rec) - 1; mlog(0, "extent block %"MLFu64", before: record %d: " "(%u, %u, %"MLFu64"), next = %u\n", le64_to_cpu(eb->h_blkno), i, mlog(0, "extent block %llu, before: record %d: " "(%u, %u, %llu), next = %u\n", (unsigned long long)le64_to_cpu(eb->h_blkno), i, le32_to_cpu(el->l_recs[i].e_cpos), le32_to_cpu(el->l_recs[i].e_clusters), le64_to_cpu(el->l_recs[i].e_blkno), (unsigned long long)le64_to_cpu(el->l_recs[i].e_blkno), le16_to_cpu(el->l_next_free_rec)); BUG_ON(le32_to_cpu(el->l_recs[i].e_clusters) < clusters_to_del); Loading @@ -1697,12 +1698,12 @@ static int ocfs2_do_truncate(struct ocfs2_super *osb, BUG_ON(!el->l_next_free_rec); le16_add_cpu(&el->l_next_free_rec, -1); } mlog(0, "extent block %"MLFu64", after: record %d: " "(%u, %u, %"MLFu64"), next = %u\n", le64_to_cpu(eb->h_blkno), i, mlog(0, "extent block %llu, after: record %d: " "(%u, %u, %llu), next = %u\n", (unsigned long long)le64_to_cpu(eb->h_blkno), i, le32_to_cpu(el->l_recs[i].e_cpos), le32_to_cpu(el->l_recs[i].e_clusters), le64_to_cpu(el->l_recs[i].e_blkno), (unsigned long long)le64_to_cpu(el->l_recs[i].e_blkno), le16_to_cpu(el->l_next_free_rec)); status = ocfs2_journal_dirty(handle, eb_bh); Loading Loading @@ -1792,10 +1793,10 @@ int ocfs2_commit_truncate(struct ocfs2_super *osb, last_eb = le64_to_cpu(fe->i_last_eb_blk); start: mlog(0, "ocfs2_commit_truncate: fe->i_clusters = %u, " "last_eb = %"MLFu64", fe->i_last_eb_blk = %"MLFu64", " "last_eb = %llu, fe->i_last_eb_blk = %llu, " "fe->id2.i_list.l_tree_depth = %u last_eb_bh = %p\n", le32_to_cpu(fe->i_clusters), last_eb, le64_to_cpu(fe->i_last_eb_blk), le32_to_cpu(fe->i_clusters), (unsigned long long)last_eb, (unsigned long long)le64_to_cpu(fe->i_last_eb_blk), le16_to_cpu(fe->id2.i_list.l_tree_depth), last_eb_bh); if (last_eb != le64_to_cpu(fe->i_last_eb_blk)) { Loading Loading @@ -1934,16 +1935,17 @@ int ocfs2_prepare_truncate(struct ocfs2_super *osb, fe = (struct ocfs2_dinode *) fe_bh->b_data; mlog(0, "fe->i_clusters = %u, new_i_clusters = %u, fe->i_size =" "%"MLFu64"\n", fe->i_clusters, new_i_clusters, fe->i_size); "%llu\n", fe->i_clusters, new_i_clusters, (unsigned long long)fe->i_size); if (le32_to_cpu(fe->i_clusters) <= new_i_clusters) { ocfs2_error(inode->i_sb, "Dinode %"MLFu64" has cluster count " "%u and size %"MLFu64" whereas struct inode has " ocfs2_error(inode->i_sb, "Dinode %llu has cluster count " "%u and size %llu whereas struct inode has " "cluster count %u and size %llu which caused an " "invalid truncate to %u clusters.", le64_to_cpu(fe->i_blkno), (unsigned long long)le64_to_cpu(fe->i_blkno), le32_to_cpu(fe->i_clusters), le64_to_cpu(fe->i_size), (unsigned long long)le64_to_cpu(fe->i_size), OCFS2_I(inode)->ip_clusters, i_size_read(inode), new_i_clusters); mlog_meta_lvb(ML_ERROR, &OCFS2_I(inode)->ip_meta_lockres); Loading
fs/ocfs2/aops.c +10 −8 Original line number Diff line number Diff line Loading @@ -74,8 +74,8 @@ static int ocfs2_symlink_get_block(struct inode *inode, sector_t iblock, fe = (struct ocfs2_dinode *) bh->b_data; if (!OCFS2_IS_VALID_DINODE(fe)) { mlog(ML_ERROR, "Invalid dinode #%"MLFu64": signature = %.*s\n", fe->i_blkno, 7, fe->i_signature); mlog(ML_ERROR, "Invalid dinode #%llu: signature = %.*s\n", (unsigned long long)fe->i_blkno, 7, fe->i_signature); goto bail; } Loading Loading @@ -162,8 +162,8 @@ static int ocfs2_get_block(struct inode *inode, sector_t iblock, NULL); if (err) { mlog(ML_ERROR, "Error %d from get_blocks(0x%p, %llu, 1, " "%"MLFu64", NULL)\n", err, inode, (unsigned long long)iblock, p_blkno); "%llu, NULL)\n", err, inode, (unsigned long long)iblock, (unsigned long long)p_blkno); goto bail; } Loading @@ -171,13 +171,15 @@ static int ocfs2_get_block(struct inode *inode, sector_t iblock, if (bh_result->b_blocknr == 0) { err = -EIO; mlog(ML_ERROR, "iblock = %llu p_blkno = %"MLFu64" " "blkno=(%"MLFu64")\n", (unsigned long long)iblock, p_blkno, OCFS2_I(inode)->ip_blkno); mlog(ML_ERROR, "iblock = %llu p_blkno = %llu blkno=(%llu)\n", (unsigned long long)iblock, (unsigned long long)p_blkno, (unsigned long long)OCFS2_I(inode)->ip_blkno); } past_eof = ocfs2_blocks_for_bytes(inode->i_sb, i_size_read(inode)); mlog(0, "Inode %lu, past_eof = %"MLFu64"\n", inode->i_ino, past_eof); mlog(0, "Inode %lu, past_eof = %llu\n", inode->i_ino, (unsigned long long)past_eof); if (create && (iblock >= past_eof)) set_buffer_new(bh_result); Loading
fs/ocfs2/buffer_head_io.c +6 −5 Original line number Diff line number Diff line Loading @@ -97,8 +97,8 @@ int ocfs2_read_blocks(struct ocfs2_super *osb, u64 block, int nr, int i, ignore_cache = 0; struct buffer_head *bh; mlog_entry("(block=(%"MLFu64"), nr=(%d), flags=%d, inode=%p)\n", block, nr, flags, inode); mlog_entry("(block=(%llu), nr=(%d), flags=%d, inode=%p)\n", (unsigned long long)block, nr, flags, inode); if (osb == NULL || osb->sb == NULL || bhs == NULL) { status = -EINVAL; Loading Loading @@ -143,9 +143,9 @@ int ocfs2_read_blocks(struct ocfs2_super *osb, u64 block, int nr, if (flags & OCFS2_BH_CACHED && !ocfs2_buffer_uptodate(inode, bh)) { mlog(ML_UPTODATE, "bh (%llu), inode %"MLFu64" not uptodate\n", "bh (%llu), inode %llu not uptodate\n", (unsigned long long)bh->b_blocknr, OCFS2_I(inode)->ip_blkno); (unsigned long long)OCFS2_I(inode)->ip_blkno); ignore_cache = 1; } Loading Loading @@ -222,7 +222,8 @@ int ocfs2_read_blocks(struct ocfs2_super *osb, u64 block, int nr, if (inode) mutex_unlock(&OCFS2_I(inode)->ip_io_mutex); mlog(ML_BH_IO, "block=(%"MLFu64"), nr=(%d), cached=%s\n", block, nr, mlog(ML_BH_IO, "block=(%llu), nr=(%d), cached=%s\n", (unsigned long long)block, nr, (!(flags & OCFS2_BH_CACHED) || ignore_cache) ? "no" : "yes"); bail: Loading
fs/ocfs2/dcache.c +5 −4 Original line number Diff line number Diff line Loading @@ -64,15 +64,16 @@ static int ocfs2_dentry_revalidate(struct dentry *dentry, /* did we or someone else delete this inode? */ if (OCFS2_I(inode)->ip_flags & OCFS2_INODE_DELETED) { spin_unlock(&OCFS2_I(inode)->ip_lock); mlog(0, "inode (%"MLFu64") deleted, returning false\n", OCFS2_I(inode)->ip_blkno); mlog(0, "inode (%llu) deleted, returning false\n", (unsigned long long)OCFS2_I(inode)->ip_blkno); goto bail; } spin_unlock(&OCFS2_I(inode)->ip_lock); if (!inode->i_nlink) { mlog(0, "Inode %"MLFu64" orphaned, returning false " "dir = %d\n", OCFS2_I(inode)->ip_blkno, mlog(0, "Inode %llu orphaned, returning false " "dir = %d\n", (unsigned long long)OCFS2_I(inode)->ip_blkno, S_ISDIR(inode->i_mode)); goto bail; } Loading
fs/ocfs2/dir.c +20 −22 Original line number Diff line number Diff line Loading @@ -83,7 +83,8 @@ int ocfs2_readdir(struct file * filp, void * dirent, filldir_t filldir) struct super_block * sb = inode->i_sb; int have_disk_lock = 0; mlog_entry("dirino=%"MLFu64"\n", OCFS2_I(inode)->ip_blkno); mlog_entry("dirino=%llu\n", (unsigned long long)OCFS2_I(inode)->ip_blkno); stored = 0; bh = NULL; Loading @@ -104,9 +105,9 @@ int ocfs2_readdir(struct file * filp, void * dirent, filldir_t filldir) blk = (filp->f_pos) >> sb->s_blocksize_bits; bh = ocfs2_bread(inode, blk, &err, 0); if (!bh) { mlog(ML_ERROR, "directory #%"MLFu64" contains a hole " "at offset %lld\n", OCFS2_I(inode)->ip_blkno, mlog(ML_ERROR, "directory #%llu contains a hole at offset %lld\n", (unsigned long long)OCFS2_I(inode)->ip_blkno, filp->f_pos); filp->f_pos += sb->s_blocksize - offset; continue; Loading Loading @@ -214,9 +215,9 @@ int ocfs2_find_files_on_disk(const char *name, int status = -ENOENT; struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); mlog_entry("(osb=%p, parent=%"MLFu64", name='%.*s', blkno=%p, " "inode=%p)\n", osb, OCFS2_I(inode)->ip_blkno, namelen, name, blkno, inode); mlog_entry("(osb=%p, parent=%llu, name='%.*s', blkno=%p, inode=%p)\n", osb, (unsigned long long)OCFS2_I(inode)->ip_blkno, namelen, name, blkno, inode); *dirent_bh = ocfs2_find_entry(name, namelen, inode, dirent); if (!*dirent_bh || !*dirent) { Loading Loading @@ -255,8 +256,8 @@ int ocfs2_check_dir_for_entry(struct inode *dir, struct buffer_head *dirent_bh = NULL; struct ocfs2_dir_entry *dirent = NULL; mlog_entry("dir %"MLFu64", name '%.*s'\n", OCFS2_I(dir)->ip_blkno, namelen, name); mlog_entry("dir %llu, name '%.*s'\n", (unsigned long long)OCFS2_I(dir)->ip_blkno, namelen, name); ret = -EEXIST; dirent_bh = ocfs2_find_entry(name, namelen, dir, &dirent); Loading Loading @@ -287,9 +288,8 @@ int ocfs2_empty_dir(struct inode *inode) if ((i_size_read(inode) < (OCFS2_DIR_REC_LEN(1) + OCFS2_DIR_REC_LEN(2))) || !(bh = ocfs2_bread(inode, 0, &err, 0))) { mlog(ML_ERROR, "bad directory (dir #%"MLFu64") - " "no data block\n", OCFS2_I(inode)->ip_blkno); mlog(ML_ERROR, "bad directory (dir #%llu) - no data block\n", (unsigned long long)OCFS2_I(inode)->ip_blkno); return 1; } Loading @@ -300,9 +300,8 @@ int ocfs2_empty_dir(struct inode *inode) !le64_to_cpu(de1->inode) || strcmp(".", de->name) || strcmp("..", de1->name)) { mlog(ML_ERROR, "bad directory (dir #%"MLFu64") - " "no `.' or `..'\n", OCFS2_I(inode)->ip_blkno); mlog(ML_ERROR, "bad directory (dir #%llu) - no `.' or `..'\n", (unsigned long long)OCFS2_I(inode)->ip_blkno); brelse(bh); return 1; } Loading @@ -314,9 +313,8 @@ int ocfs2_empty_dir(struct inode *inode) bh = ocfs2_bread(inode, offset >> sb->s_blocksize_bits, &err, 0); if (!bh) { mlog(ML_ERROR, "directory #%"MLFu64" contains " "a hole at offset %lu\n", OCFS2_I(inode)->ip_blkno, offset); mlog(ML_ERROR, "dir %llu has a hole at %lu\n", (unsigned long long)OCFS2_I(inode)->ip_blkno, offset); offset += sb->s_blocksize; continue; } Loading Loading @@ -406,8 +404,8 @@ static int ocfs2_extend_dir(struct ocfs2_super *osb, mlog_entry_void(); dir_i_size = i_size_read(dir); mlog(0, "extending dir %"MLFu64" (i_size = %lld)\n", OCFS2_I(dir)->ip_blkno, dir_i_size); mlog(0, "extending dir %llu (i_size = %lld)\n", (unsigned long long)OCFS2_I(dir)->ip_blkno, dir_i_size); handle = ocfs2_alloc_handle(osb); if (handle == NULL) { Loading Loading @@ -531,8 +529,8 @@ int ocfs2_prepare_dir_for_insert(struct ocfs2_super *osb, mlog_entry_void(); mlog(0, "getting ready to insert namelen %d into dir %"MLFu64"\n", namelen, OCFS2_I(dir)->ip_blkno); mlog(0, "getting ready to insert namelen %d into dir %llu\n", namelen, (unsigned long long)OCFS2_I(dir)->ip_blkno); BUG_ON(!S_ISDIR(dir->i_mode)); fe = (struct ocfs2_dinode *) parent_fe_bh->b_data; Loading