Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262083
b: refs/heads/master
c: 8bb2b24
h: refs/heads/master
i:
  262081: db59262
  262079: 3ff7737
v: v3
  • Loading branch information
Amir Goldstein authored and Theodore Ts'o committed Jun 27, 2011
1 parent 6dd0d5e commit eb1cada
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ff9893dc8aa622a4f122293a6861566a284edea5
refs/heads/master: 8bb2b247124ba6093455d4aef26743b1bef27bc5
10 changes: 4 additions & 6 deletions trunk/fs/ext4/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1075,8 +1075,7 @@ qsize_t *ext4_get_reserved_space(struct inode *inode)
* Calculate the number of metadata blocks need to reserve
* to allocate a new block at @lblocks for non extent file based file
*/
static int ext4_indirect_calc_metadata_amount(struct inode *inode,
sector_t lblock)
static int ext4_ind_calc_metadata_amount(struct inode *inode, sector_t lblock)
{
struct ext4_inode_info *ei = EXT4_I(inode);
sector_t dind_mask = ~((sector_t)EXT4_ADDR_PER_BLOCK(inode->i_sb) - 1);
Expand Down Expand Up @@ -1107,7 +1106,7 @@ static int ext4_calc_metadata_amount(struct inode *inode, ext4_lblk_t lblock)
if (ext4_test_inode_flag(inode, EXT4_INODE_EXTENTS))
return ext4_ext_calc_metadata_amount(inode, lblock);

return ext4_indirect_calc_metadata_amount(inode, lblock);
return ext4_ind_calc_metadata_amount(inode, lblock);
}

/*
Expand Down Expand Up @@ -5456,8 +5455,7 @@ int ext4_getattr(struct vfsmount *mnt, struct dentry *dentry,
return 0;
}

static int ext4_indirect_trans_blocks(struct inode *inode, int nrblocks,
int chunk)
static int ext4_ind_trans_blocks(struct inode *inode, int nrblocks, int chunk)
{
int indirects;

Expand All @@ -5483,7 +5481,7 @@ static int ext4_indirect_trans_blocks(struct inode *inode, int nrblocks,
static int ext4_index_trans_blocks(struct inode *inode, int nrblocks, int chunk)
{
if (!(ext4_test_inode_flag(inode, EXT4_INODE_EXTENTS)))
return ext4_indirect_trans_blocks(inode, nrblocks, chunk);
return ext4_ind_trans_blocks(inode, nrblocks, chunk);
return ext4_ext_index_trans_blocks(inode, nrblocks, chunk);
}

Expand Down

0 comments on commit eb1cada

Please sign in to comment.