diff options
| author | Andrew Morton <akpm@osdl.org> | 2004-11-01 23:09:24 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-11-01 23:09:24 -0800 |
| commit | 6fe496ec29fc06d5babdda447d8511069a0f557b (patch) | |
| tree | 5be900047a8c18e13692b0e1c33b3899641efc22 /fs/ext3 | |
| parent | 1723f7f238f904153fa4485dafbc24a21630d36a (diff) | |
[PATCH] ext3_bread() cleanup
- remove unused local
- whitespace
- put_bh() is faster than brelse()
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/ext3')
| -rw-r--r-- | fs/ext3/inode.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/fs/ext3/inode.c b/fs/ext3/inode.c index 23c020fc9d55..aa354050ba51 100644 --- a/fs/ext3/inode.c +++ b/fs/ext3/inode.c @@ -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; } |
