suballoc.c (8a517c514d5893602cf85c1b4c47afbbc04d2198) | suballoc.c (8cb471e8f82506937fe5e2e9fb0bf90f6b1f1170) |
---|---|
1/* -*- mode: c; c-basic-offset: 8; -*- 2 * vim: noexpandtab sw=8 ts=8 sts=0: 3 * 4 * suballoc.c 5 * 6 * metadata alloc and free 7 * Inspired by ext3 block groups. 8 * --- 296 unchanged lines hidden (view full) --- 305} 306 307int ocfs2_read_group_descriptor(struct inode *inode, struct ocfs2_dinode *di, 308 u64 gd_blkno, struct buffer_head **bh) 309{ 310 int rc; 311 struct buffer_head *tmp = *bh; 312 | 1/* -*- mode: c; c-basic-offset: 8; -*- 2 * vim: noexpandtab sw=8 ts=8 sts=0: 3 * 4 * suballoc.c 5 * 6 * metadata alloc and free 7 * Inspired by ext3 block groups. 8 * --- 296 unchanged lines hidden (view full) --- 305} 306 307int ocfs2_read_group_descriptor(struct inode *inode, struct ocfs2_dinode *di, 308 u64 gd_blkno, struct buffer_head **bh) 309{ 310 int rc; 311 struct buffer_head *tmp = *bh; 312 |
313 rc = ocfs2_read_block(inode, gd_blkno, &tmp, | 313 rc = ocfs2_read_block(INODE_CACHE(inode), gd_blkno, &tmp, |
314 ocfs2_validate_group_descriptor); 315 if (rc) 316 goto out; 317 318 rc = ocfs2_validate_gd_parent(inode->i_sb, di, tmp, 0); 319 if (rc) { 320 brelse(tmp); 321 goto out; --- 149 unchanged lines hidden (view full) --- 471 alloc_rec, (unsigned long long)bg_blkno); 472 473 bg_bh = sb_getblk(osb->sb, bg_blkno); 474 if (!bg_bh) { 475 status = -EIO; 476 mlog_errno(status); 477 goto bail; 478 } | 314 ocfs2_validate_group_descriptor); 315 if (rc) 316 goto out; 317 318 rc = ocfs2_validate_gd_parent(inode->i_sb, di, tmp, 0); 319 if (rc) { 320 brelse(tmp); 321 goto out; --- 149 unchanged lines hidden (view full) --- 471 alloc_rec, (unsigned long long)bg_blkno); 472 473 bg_bh = sb_getblk(osb->sb, bg_blkno); 474 if (!bg_bh) { 475 status = -EIO; 476 mlog_errno(status); 477 goto bail; 478 } |
479 ocfs2_set_new_buffer_uptodate(alloc_inode, bg_bh); | 479 ocfs2_set_new_buffer_uptodate(INODE_CACHE(alloc_inode), bg_bh); |
480 481 status = ocfs2_block_group_fill(handle, 482 alloc_inode, 483 bg_bh, 484 bg_blkno, 485 alloc_rec, 486 cl); 487 if (status < 0) { --- 1884 unchanged lines hidden --- | 480 481 status = ocfs2_block_group_fill(handle, 482 alloc_inode, 483 bg_bh, 484 bg_blkno, 485 alloc_rec, 486 cl); 487 if (status < 0) { --- 1884 unchanged lines hidden --- |