Commit 6fe496ec authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] ext3_bread() cleanup

- remove unused local

- whitespace

- put_bh() is faster than brelse()
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 1723f7f2
......@@ -913,20 +913,17 @@ struct buffer_head *ext3_bread(handle_t *handle, struct inode * inode,
int block, int create, int *err)
{
struct buffer_head * bh;
int prev_blocks;
prev_blocks = inode->i_blocks;
bh = ext3_getblk (handle, inode, block, create, err);
bh = ext3_getblk(handle, inode, block, create, err);
if (!bh)
return bh;
if (buffer_uptodate(bh))
return bh;
ll_rw_block (READ, 1, &bh);
wait_on_buffer (bh);
ll_rw_block(READ, 1, &bh);
wait_on_buffer(bh);
if (buffer_uptodate(bh))
return bh;
brelse (bh);
put_bh(bh);
*err = -EIO;
return NULL;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment