提交 3e4fdaf8 编写于 作者: D Dmitriy Monakhov 提交者: Linus Torvalds

[PATCH] jbd layer function called instead of fs specific one

jbd function called instead of fs specific one.
Signed-off-by: NDmitriy Monakhov <dmonakhov@openvz.org>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 501b9ebf
...@@ -947,7 +947,7 @@ int ext3_get_blocks_handle(handle_t *handle, struct inode *inode, ...@@ -947,7 +947,7 @@ int ext3_get_blocks_handle(handle_t *handle, struct inode *inode,
static int ext3_get_block(struct inode *inode, sector_t iblock, static int ext3_get_block(struct inode *inode, sector_t iblock,
struct buffer_head *bh_result, int create) struct buffer_head *bh_result, int create)
{ {
handle_t *handle = journal_current_handle(); handle_t *handle = ext3_journal_current_handle();
int ret = 0; int ret = 0;
unsigned max_blocks = bh_result->b_size >> inode->i_blkbits; unsigned max_blocks = bh_result->b_size >> inode->i_blkbits;
...@@ -1717,7 +1717,7 @@ static ssize_t ext3_direct_IO(int rw, struct kiocb *iocb, ...@@ -1717,7 +1717,7 @@ static ssize_t ext3_direct_IO(int rw, struct kiocb *iocb,
/* /*
* Reacquire the handle: ext3_get_block() can restart the transaction * Reacquire the handle: ext3_get_block() can restart the transaction
*/ */
handle = journal_current_handle(); handle = ext3_journal_current_handle();
out_stop: out_stop:
if (handle) { if (handle) {
......
...@@ -946,7 +946,7 @@ int ext4_get_blocks_handle(handle_t *handle, struct inode *inode, ...@@ -946,7 +946,7 @@ int ext4_get_blocks_handle(handle_t *handle, struct inode *inode,
static int ext4_get_block(struct inode *inode, sector_t iblock, static int ext4_get_block(struct inode *inode, sector_t iblock,
struct buffer_head *bh_result, int create) struct buffer_head *bh_result, int create)
{ {
handle_t *handle = journal_current_handle(); handle_t *handle = ext4_journal_current_handle();
int ret = 0; int ret = 0;
unsigned max_blocks = bh_result->b_size >> inode->i_blkbits; unsigned max_blocks = bh_result->b_size >> inode->i_blkbits;
...@@ -1716,7 +1716,7 @@ static ssize_t ext4_direct_IO(int rw, struct kiocb *iocb, ...@@ -1716,7 +1716,7 @@ static ssize_t ext4_direct_IO(int rw, struct kiocb *iocb,
/* /*
* Reacquire the handle: ext4_get_block() can restart the transaction * Reacquire the handle: ext4_get_block() can restart the transaction
*/ */
handle = journal_current_handle(); handle = ext4_journal_current_handle();
out_stop: out_stop:
if (handle) { if (handle) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册