Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146383
b: refs/heads/master
c: e4d996c
h: refs/heads/master
i:
  146381: 1153bdf
  146379: 9fcbb75
  146375: 07787c2
  146367: 237ed57
v: v3
  • Loading branch information
Theodore Ts'o committed May 12, 2009
1 parent 232529f commit c5cfa8d
Show file tree
Hide file tree
Showing 2 changed files with 7 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: f888e652d758bfe0c04c209b72a05972daeba386
refs/heads/master: e4d996ca806e93dddb5d76c0d3d859b494c559f6
12 changes: 6 additions & 6 deletions trunk/fs/ext4/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ static int ext4_splice_branch(handle_t *handle, struct inode *inode,
* down_read(&EXT4_I(inode)->i_data_sem) if not allocating file system block
* (ie, create is zero). Otherwise down_write(&EXT4_I(inode)->i_data_sem)
*/
static int ext4_get_blocks_handle(handle_t *handle, struct inode *inode,
static int ext4_ind_get_blocks(handle_t *handle, struct inode *inode,
ext4_lblk_t iblock, unsigned int maxblocks,
struct buffer_head *bh_result,
int create, int extend_disksize)
Expand Down Expand Up @@ -1129,7 +1129,7 @@ static void ext4_da_update_reserve_space(struct inode *inode, int used)
* mapped.
*
* If file type is extents based, it will call ext4_ext_get_blocks(),
* Otherwise, call with ext4_get_blocks_handle() to handle indirect mapping
* Otherwise, call with ext4_ind_get_blocks() to handle indirect mapping
* based files
*
* On success, it returns the number of blocks being mapped or allocate.
Expand Down Expand Up @@ -1160,8 +1160,8 @@ int ext4_get_blocks_wrap(handle_t *handle, struct inode *inode, sector_t block,
retval = ext4_ext_get_blocks(handle, inode, block, max_blocks,
bh, 0, 0);
} else {
retval = ext4_get_blocks_handle(handle,
inode, block, max_blocks, bh, 0, 0);
retval = ext4_ind_get_blocks(handle, inode, block, max_blocks,
bh, 0, 0);
}
up_read((&EXT4_I(inode)->i_data_sem));

Expand Down Expand Up @@ -1215,7 +1215,7 @@ int ext4_get_blocks_wrap(handle_t *handle, struct inode *inode, sector_t block,
retval = ext4_ext_get_blocks(handle, inode, block, max_blocks,
bh, create, extend_disksize);
} else {
retval = ext4_get_blocks_handle(handle, inode, block,
retval = ext4_ind_get_blocks(handle, inode, block,
max_blocks, bh, create, extend_disksize);

if (retval > 0 && buffer_new(bh)) {
Expand Down Expand Up @@ -1297,7 +1297,7 @@ struct buffer_head *ext4_getblk(handle_t *handle, struct inode *inode,
err = ext4_get_blocks_wrap(handle, inode, block, 1,
&dummy, create, 1, 0);
/*
* ext4_get_blocks_handle() returns number of blocks
* ext4_get_blocks_wrap() returns number of blocks
* mapped. 0 in case of a HOLE.
*/
if (err > 0) {
Expand Down

0 comments on commit c5cfa8d

Please sign in to comment.