diff options
author | Amir Goldstein <amir73il@users.sf.net> | 2011-06-27 17:10:28 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-06-27 17:10:28 -0400 |
commit | 8bb2b247124ba6093455d4aef26743b1bef27bc5 (patch) | |
tree | cb9dd91f6616b61bd71286e2f674eda8cad0f476 /fs/ext4/inode.c | |
parent | ff9893dc8aa622a4f122293a6861566a284edea5 (diff) |
ext4: rename ext4_indirect_* funcs to ext4_ind_*
We are going to move all ext4_ind_* functions to indirect.c.
Before we do that, let's rename 2 functions called ext4_indirect_*
to ext4_ind_*, to keep to the naming convention.
Signed-off-by: Amir Goldstein <amir73il@users.sf.net>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/inode.c')
-rw-r--r-- | fs/ext4/inode.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index a8f310b77f56..6c1d28e37235 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c | |||
@@ -1075,8 +1075,7 @@ qsize_t *ext4_get_reserved_space(struct inode *inode) | |||
1075 | * Calculate the number of metadata blocks need to reserve | 1075 | * Calculate the number of metadata blocks need to reserve |
1076 | * to allocate a new block at @lblocks for non extent file based file | 1076 | * to allocate a new block at @lblocks for non extent file based file |
1077 | */ | 1077 | */ |
1078 | static int ext4_indirect_calc_metadata_amount(struct inode *inode, | 1078 | static int ext4_ind_calc_metadata_amount(struct inode *inode, sector_t lblock) |
1079 | sector_t lblock) | ||
1080 | { | 1079 | { |
1081 | struct ext4_inode_info *ei = EXT4_I(inode); | 1080 | struct ext4_inode_info *ei = EXT4_I(inode); |
1082 | sector_t dind_mask = ~((sector_t)EXT4_ADDR_PER_BLOCK(inode->i_sb) - 1); | 1081 | sector_t dind_mask = ~((sector_t)EXT4_ADDR_PER_BLOCK(inode->i_sb) - 1); |
@@ -1107,7 +1106,7 @@ static int ext4_calc_metadata_amount(struct inode *inode, ext4_lblk_t lblock) | |||
1107 | if (ext4_test_inode_flag(inode, EXT4_INODE_EXTENTS)) | 1106 | if (ext4_test_inode_flag(inode, EXT4_INODE_EXTENTS)) |
1108 | return ext4_ext_calc_metadata_amount(inode, lblock); | 1107 | return ext4_ext_calc_metadata_amount(inode, lblock); |
1109 | 1108 | ||
1110 | return ext4_indirect_calc_metadata_amount(inode, lblock); | 1109 | return ext4_ind_calc_metadata_amount(inode, lblock); |
1111 | } | 1110 | } |
1112 | 1111 | ||
1113 | /* | 1112 | /* |
@@ -5456,8 +5455,7 @@ int ext4_getattr(struct vfsmount *mnt, struct dentry *dentry, | |||
5456 | return 0; | 5455 | return 0; |
5457 | } | 5456 | } |
5458 | 5457 | ||
5459 | static int ext4_indirect_trans_blocks(struct inode *inode, int nrblocks, | 5458 | static int ext4_ind_trans_blocks(struct inode *inode, int nrblocks, int chunk) |
5460 | int chunk) | ||
5461 | { | 5459 | { |
5462 | int indirects; | 5460 | int indirects; |
5463 | 5461 | ||
@@ -5483,7 +5481,7 @@ static int ext4_indirect_trans_blocks(struct inode *inode, int nrblocks, | |||
5483 | static int ext4_index_trans_blocks(struct inode *inode, int nrblocks, int chunk) | 5481 | static int ext4_index_trans_blocks(struct inode *inode, int nrblocks, int chunk) |
5484 | { | 5482 | { |
5485 | if (!(ext4_test_inode_flag(inode, EXT4_INODE_EXTENTS))) | 5483 | if (!(ext4_test_inode_flag(inode, EXT4_INODE_EXTENTS))) |
5486 | return ext4_indirect_trans_blocks(inode, nrblocks, chunk); | 5484 | return ext4_ind_trans_blocks(inode, nrblocks, chunk); |
5487 | return ext4_ext_index_trans_blocks(inode, nrblocks, chunk); | 5485 | return ext4_ext_index_trans_blocks(inode, nrblocks, chunk); |
5488 | } | 5486 | } |
5489 | 5487 | ||