|
@@ -788,7 +788,7 @@ err_out:
|
|
int ext3_get_blocks_handle(handle_t *handle, struct inode *inode,
|
|
int ext3_get_blocks_handle(handle_t *handle, struct inode *inode,
|
|
sector_t iblock, unsigned long maxblocks,
|
|
sector_t iblock, unsigned long maxblocks,
|
|
struct buffer_head *bh_result,
|
|
struct buffer_head *bh_result,
|
|
- int create, int extend_disksize)
|
|
|
|
|
|
+ int create)
|
|
{
|
|
{
|
|
int err = -EIO;
|
|
int err = -EIO;
|
|
int offsets[4];
|
|
int offsets[4];
|
|
@@ -911,13 +911,6 @@ int ext3_get_blocks_handle(handle_t *handle, struct inode *inode,
|
|
if (!err)
|
|
if (!err)
|
|
err = ext3_splice_branch(handle, inode, iblock,
|
|
err = ext3_splice_branch(handle, inode, iblock,
|
|
partial, indirect_blks, count);
|
|
partial, indirect_blks, count);
|
|
- /*
|
|
|
|
- * i_disksize growing is protected by truncate_mutex. Don't forget to
|
|
|
|
- * protect it if you're about to implement concurrent
|
|
|
|
- * ext3_get_block() -bzzz
|
|
|
|
- */
|
|
|
|
- if (!err && extend_disksize && inode->i_size > ei->i_disksize)
|
|
|
|
- ei->i_disksize = inode->i_size;
|
|
|
|
mutex_unlock(&ei->truncate_mutex);
|
|
mutex_unlock(&ei->truncate_mutex);
|
|
if (err)
|
|
if (err)
|
|
goto cleanup;
|
|
goto cleanup;
|
|
@@ -972,7 +965,7 @@ static int ext3_get_block(struct inode *inode, sector_t iblock,
|
|
}
|
|
}
|
|
|
|
|
|
ret = ext3_get_blocks_handle(handle, inode, iblock,
|
|
ret = ext3_get_blocks_handle(handle, inode, iblock,
|
|
- max_blocks, bh_result, create, 0);
|
|
|
|
|
|
+ max_blocks, bh_result, create);
|
|
if (ret > 0) {
|
|
if (ret > 0) {
|
|
bh_result->b_size = (ret << inode->i_blkbits);
|
|
bh_result->b_size = (ret << inode->i_blkbits);
|
|
ret = 0;
|
|
ret = 0;
|
|
@@ -1005,7 +998,7 @@ struct buffer_head *ext3_getblk(handle_t *handle, struct inode *inode,
|
|
dummy.b_blocknr = -1000;
|
|
dummy.b_blocknr = -1000;
|
|
buffer_trace_init(&dummy.b_history);
|
|
buffer_trace_init(&dummy.b_history);
|
|
err = ext3_get_blocks_handle(handle, inode, block, 1,
|
|
err = ext3_get_blocks_handle(handle, inode, block, 1,
|
|
- &dummy, create, 1);
|
|
|
|
|
|
+ &dummy, create);
|
|
/*
|
|
/*
|
|
* ext3_get_blocks_handle() returns number of blocks
|
|
* ext3_get_blocks_handle() returns number of blocks
|
|
* mapped. 0 in case of a HOLE.
|
|
* mapped. 0 in case of a HOLE.
|