extent_map.c (8cb471e8f82506937fe5e2e9fb0bf90f6b1f1170) | extent_map.c (3d03a305ded8057155bd3c801e64ffef9f534827) |
---|---|
1/* -*- mode: c; c-basic-offset: 8; -*- 2 * vim: noexpandtab sw=8 ts=8 sts=0: 3 * 4 * extent_map.c 5 * 6 * Block/Cluster mapping functions 7 * 8 * Copyright (C) 2004 Oracle. All rights reserved. --- 279 unchanged lines hidden (view full) --- 288 struct ocfs2_dinode *di) 289{ 290 int ret, next_free; 291 u64 last_eb_blk = le64_to_cpu(di->i_last_eb_blk); 292 struct buffer_head *eb_bh = NULL; 293 struct ocfs2_extent_block *eb; 294 struct ocfs2_extent_list *el; 295 | 1/* -*- mode: c; c-basic-offset: 8; -*- 2 * vim: noexpandtab sw=8 ts=8 sts=0: 3 * 4 * extent_map.c 5 * 6 * Block/Cluster mapping functions 7 * 8 * Copyright (C) 2004 Oracle. All rights reserved. --- 279 unchanged lines hidden (view full) --- 288 struct ocfs2_dinode *di) 289{ 290 int ret, next_free; 291 u64 last_eb_blk = le64_to_cpu(di->i_last_eb_blk); 292 struct buffer_head *eb_bh = NULL; 293 struct ocfs2_extent_block *eb; 294 struct ocfs2_extent_list *el; 295 |
296 ret = ocfs2_read_extent_block(inode, last_eb_blk, &eb_bh); | 296 ret = ocfs2_read_extent_block(INODE_CACHE(inode), last_eb_blk, &eb_bh); |
297 if (ret) { 298 mlog_errno(ret); 299 goto out; 300 } 301 302 eb = (struct ocfs2_extent_block *) eb_bh->b_data; 303 el = &eb->h_list; 304 --- 65 unchanged lines hidden (view full) --- 370 371 /* 372 * Check the next leaf for any extents. 373 */ 374 375 if (le64_to_cpu(eb->h_next_leaf_blk) == 0ULL) 376 goto no_more_extents; 377 | 297 if (ret) { 298 mlog_errno(ret); 299 goto out; 300 } 301 302 eb = (struct ocfs2_extent_block *) eb_bh->b_data; 303 el = &eb->h_list; 304 --- 65 unchanged lines hidden (view full) --- 370 371 /* 372 * Check the next leaf for any extents. 373 */ 374 375 if (le64_to_cpu(eb->h_next_leaf_blk) == 0ULL) 376 goto no_more_extents; 377 |
378 ret = ocfs2_read_extent_block(inode, | 378 ret = ocfs2_read_extent_block(INODE_CACHE(inode), |
379 le64_to_cpu(eb->h_next_leaf_blk), 380 &next_eb_bh); 381 if (ret) { 382 mlog_errno(ret); 383 goto out; 384 } 385 386 next_eb = (struct ocfs2_extent_block *)next_eb_bh->b_data; --- 493 unchanged lines hidden --- | 379 le64_to_cpu(eb->h_next_leaf_blk), 380 &next_eb_bh); 381 if (ret) { 382 mlog_errno(ret); 383 goto out; 384 } 385 386 next_eb = (struct ocfs2_extent_block *)next_eb_bh->b_data; --- 493 unchanged lines hidden --- |