Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 155745
b: refs/heads/master
c: 43237b5
h: refs/heads/master
i:
  155743: 15da71c
v: v3
  • Loading branch information
Jan Kara committed Jul 15, 2009
1 parent 5d5803d commit 4ef81a6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 14 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: 1e9fd53b783ea646de3ee09a4574afeb6778d504
refs/heads/master: 43237b5490e8f2f4679decd660064ff35ce490cc
3 changes: 1 addition & 2 deletions trunk/fs/ext3/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,7 @@ static int ext3_readdir(struct file * filp,
struct buffer_head *bh = NULL;

map_bh.b_state = 0;
err = ext3_get_blocks_handle(NULL, inode, blk, 1,
&map_bh, 0, 0);
err = ext3_get_blocks_handle(NULL, inode, blk, 1, &map_bh, 0);
if (err > 0) {
pgoff_t index = map_bh.b_blocknr >>
(PAGE_CACHE_SHIFT - inode->i_blkbits);
Expand Down
13 changes: 3 additions & 10 deletions trunk/fs/ext3/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ static int ext3_splice_branch(handle_t *handle, struct inode *inode,
int ext3_get_blocks_handle(handle_t *handle, struct inode *inode,
sector_t iblock, unsigned long maxblocks,
struct buffer_head *bh_result,
int create, int extend_disksize)
int create)
{
int err = -EIO;
int offsets[4];
Expand Down Expand Up @@ -911,13 +911,6 @@ int ext3_get_blocks_handle(handle_t *handle, struct inode *inode,
if (!err)
err = ext3_splice_branch(handle, inode, iblock,
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);
if (err)
goto cleanup;
Expand Down Expand Up @@ -972,7 +965,7 @@ static int ext3_get_block(struct inode *inode, sector_t iblock,
}

ret = ext3_get_blocks_handle(handle, inode, iblock,
max_blocks, bh_result, create, 0);
max_blocks, bh_result, create);
if (ret > 0) {
bh_result->b_size = (ret << inode->i_blkbits);
ret = 0;
Expand Down Expand Up @@ -1005,7 +998,7 @@ struct buffer_head *ext3_getblk(handle_t *handle, struct inode *inode,
dummy.b_blocknr = -1000;
buffer_trace_init(&dummy.b_history);
err = ext3_get_blocks_handle(handle, inode, block, 1,
&dummy, create, 1);
&dummy, create);
/*
* ext3_get_blocks_handle() returns number of blocks
* mapped. 0 in case of a HOLE.
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/ext3_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ struct buffer_head * ext3_getblk (handle_t *, struct inode *, long, int, int *);
struct buffer_head * ext3_bread (handle_t *, struct inode *, int, int, int *);
int ext3_get_blocks_handle(handle_t *handle, struct inode *inode,
sector_t iblock, unsigned long maxblocks, struct buffer_head *bh_result,
int create, int extend_disksize);
int create);

extern struct inode *ext3_iget(struct super_block *, unsigned long);
extern int ext3_write_inode (struct inode *, int);
Expand Down

0 comments on commit 4ef81a6

Please sign in to comment.