Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24094
b: refs/heads/master
c: f91a2ad
h: refs/heads/master
v: v3
  • Loading branch information
Badari Pulavarty authored and Linus Torvalds committed Mar 26, 2006
1 parent ec5ec8c commit 4cb00f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 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: d6859bfca8cbfe4105704e410b0afa50beabbbb9
refs/heads/master: f91a2ad2ed97099fb565e3336f8df0df717f2ba9
16 changes: 4 additions & 12 deletions trunk/fs/ext3/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -941,9 +941,8 @@ int ext3_get_blocks_handle(handle_t *handle, struct inode *inode,

#define DIO_CREDITS (EXT3_RESERVE_TRANS_BLOCKS + 32)

static int
ext3_direct_io_get_blocks(struct inode *inode, sector_t iblock,
struct buffer_head *bh_result, int create)
static int ext3_get_block(struct inode *inode, sector_t iblock,
struct buffer_head *bh_result, int create)
{
handle_t *handle = journal_current_handle();
int ret = 0;
Expand Down Expand Up @@ -992,12 +991,6 @@ ext3_direct_io_get_blocks(struct inode *inode, sector_t iblock,
return ret;
}

static int ext3_get_block(struct inode *inode, sector_t iblock,
struct buffer_head *bh_result, int create)
{
return ext3_direct_io_get_blocks(inode, iblock, bh_result, create);
}

/*
* `handle' can be NULL if create is zero
*/
Expand Down Expand Up @@ -1648,11 +1641,10 @@ static ssize_t ext3_direct_IO(int rw, struct kiocb *iocb,

ret = blockdev_direct_IO(rw, iocb, inode, inode->i_sb->s_bdev, iov,
offset, nr_segs,
ext3_direct_io_get_blocks, NULL);
ext3_get_block, NULL);

/*
* Reacquire the handle: ext3_direct_io_get_block() can restart the
* transaction
* Reacquire the handle: ext3_get_block() can restart the transaction
*/
handle = journal_current_handle();

Expand Down

0 comments on commit 4cb00f2

Please sign in to comment.